Generate SHA-512/224 Hash using Python

PyCryptodome library

  1. Install PyCryptodome library from the command line:
pip install pycryptodome
  1. Generate SHA-512/224 hash:
from Crypto.Hash import SHA512 text = 'Hello' hashObject = SHA512.new(truncate='224') hashObject.update(text.encode('utf-8')) digest = hashObject.hexdigest() print(digest)

Leave a Comment

Cancel reply

Your email address will not be published.