hashlib module
For operating the associated encrypted, 3.x md5 module in place of the module and sha
Encryption
Import hashlib obj = hashlib.md5 () # if add parameters set in its own md5, the other is not easy to decrypt the decryption software, for example: hashlib.md5 ( 'asdfg'.encode ('. 8-utff ')) obj .Update ( ' Hello ' .encode ( ' UTF-. 8 ' )) Print (obj.hexdigest ())
Operation results (hello converted into a ciphertext):
5d41402abc4b2a76b9719d911017c592