1import hashlib
2m = hashlib.sha512()
3m.update(b"Message") #change message to what you want to encode
4#If you want to use a variable use the other version of m.update()
5variable = "Message"
6m.update(variable.encode("utf8"))
7hashedMessage = m.digest()
8print(hashedMessage)