您好,我需要进行HMACSHA256加密,请帮助我;
sha256 = MessageDigest.getInstance("HMACSHA1"); //I get exception in this line (No algorithm found)发布于 2011-03-03 20:50:09
Mac hmacSha256 = Mac.getInstance("hmacSHA256");散列和Mac-ing不是加密的。
发布于 2011-03-03 13:40:49
尝试:
sha256 = MessageDigest.getInstance("HMAC-SHA1");
Proof link
https://stackoverflow.com/questions/5177072
复制相似问题