Create a program that will create a SHA256 secure hash of a file
To create a hash of text ...
import hashlib m = hashlib.sha256() m.update(b'Now is the winter of our discontent') m.update(b'Made glorious summer by this son of York;') m.update(b'And all the clouds that lour\'d upon our house') m.update(b'In the deep bosom of the ocean buried.') print('m.digest is {}'.format(type(m.digest()))) print('m.hexdigest is {}'.format(type(m.hexdigest()))) ##print(m.digest()) print(m.hexdigest()) print(m.digest_size) print(m.block_size)
1. In the example code, change one character. What happens?
2. What hash algorithms are supported by hashlib?
3. Create a GUI version of the program. (use FileDialog widget)
Create a program that will encrypt/decrypt a file
Create a Tk program like Blockchain 101 - A Visual Demo (YouTube)