📜  sha 256 python 代码示例

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

代码示例1
import hashlib

secret_thing = hashlib.sha256()
# Keep in mind you add on to the already existing string when you .update the same thing.
secret_thing.update(b"hahahahaahhahaa nobody will guess my secret message")

secret_thing.digest_size
secret_thing.block_size