python use sha512 code example
Example 1: python hashlib.sha512()
from hashlib import sha512
print(sha512('hello'.encode()).hexdigest())
Example 2: sha512 python
import hashlib
m = hashlib.sha512()
m.update(b"Message") #change message to what you want to encode
#If you want to use a variable use the other version of m.update()
variable = "Message"
m.update(variable.encode("utf8"))
hashedMessage = m.digest()
print(hashedMessage)