开发者

JAVA -HMACSHA256

开发者 https://www.devze.com 2023-02-14 17:33 出处:网络
HI i need t开发者_如何学Pythono perform HMACSHA256 encryption please help me; sha256 = MessageDigest.getInstance(\"HMACSHA1\"); //I get exception in this line (No algorithm found)

HI i need t开发者_如何学Pythono perform HMACSHA256 encryption please help me;

 sha256 = MessageDigest.getInstance("HMACSHA1"); //I get exception in this line (No algorithm found)


Mac hmacSha256 = Mac.getInstance("hmacSHA256");

Hashing and Mac-ing are not encryption.


try:

sha256 = MessageDigest.getInstance("HMAC-SHA1");

Proof link

0

精彩评论

暂无评论...
验证码 换一张
取 消