JAVA -HMACSHA256
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
精彩评论