• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 22
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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);
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic