• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.security.NoSuchAlgorithmException: MessageDigest HMAC-SHA-1 implementation not found

 
Ashish Kirpan
Greenhorn
Posts: 22
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using ibm jdk1.4, while hashing i stuck here
java.security.NoSuchAlgorithmException: MessageDigest HMAC-SHA-1 implementation not found
i am sharing sample code, please help if anyone having any idea about this.

MessageDigest hmac_sha1 = MessageDigest.getInstance("HMAC-SHA-1", "CryptixCrypto");
sha1key = Hex.fromString(astrKey);
tmp = hmac_sha1.digest(astrData.getBytes());
output = Hex.toString(tmp);
 
Tim Moores
Bartender
Posts: 2839
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While there may be a solution to the problem, note that both Cryptix and Java 1.4 are dead. I'd advise to upgrade to Java 6 which comes with all the strong crypto support you need.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic