📜  sha512 python 代码示例

📅  最后修改于: 2022-03-11 14:47:01.178000             🧑  作者: Mango

代码示例2
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)