hashlib.sha256 in python code example Example: python hashlib.sha512() from hashlib import sha512 print(sha512('hello'.encode()).hexdigest())