PyCryptodome library
- Install
PyCryptodome
library from the command line:
pip install pycryptodome
- Generate MD2 hash:
from Crypto.Hash import MD2
text = 'Hello'
hashObject = MD2.new()
hashObject.update(text.encode('utf-8'))
digest = hashObject.hexdigest()
print(digest)
Leave a Comment
Cancel reply