主页
Python
Python hmac 模块
demo_ref_module_hmac_basic
运行 ❯
×
更改方向
保存代码
更改主题
import hmac import hashlib sig = hmac.new(b"key", b"Linus", hashlib.sha256).hexdigest() print(sig)
32472efc13868efbc0ae9a07486c576c37a22cd3049e40888588ed4d955dcd1a