Hands-On Cryptography with Python: Leverage the power of Python to encrypt and decrypt data by Samuel Bowne

Hands-On Cryptography with Python: Leverage the power of Python to encrypt and decrypt data by Samuel Bowne

Author:Samuel Bowne [Bowne, Samuel]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2018-06-28T23:00:00+00:00


So, let's take a look.

Open the Terminal and execute the python command to start the Python Terminal:

You can then run the following commands:

You have to import hashlib. Then, you can add hashlib.new. The first parameter is the algorithm, which is md5, in this case. The next parameter is the data to hash, which is HELLO, and then hexdigest is added to see the hexadecimal value. So, there's the hash of HELLO, and if we put another character at the end such that it reads HELLOa, then we get a completely different answer:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.