相关疑难解决方法(0)

如何在JS中获取CryptoJS.HmacSHA256的摘要表示

我必须生成CryptoJS.HmacSHA256摘要(字节表示)的字符串表示.

我需要它,因为我必须复制python代码,在javascript中生成这样的摘要:

print hmac.new("secret", "test", hashlib.sha256).digest()

')?kb??>?y+??????:?o???H?   '
Run Code Online (Sandbox Code Playgroud)

目标是在javascript中复制上面代码的行为.

你能建议我怎么做吗?

javascript python cryptography hmac cryptojs

8
推荐指数
2
解决办法
1万
查看次数

标签 统计

cryptography ×1

cryptojs ×1

hmac ×1

javascript ×1

python ×1