Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
java.security.NoSuchAlgorithmException: MessageDigest HMAC-SHA-1 implementation not found
Joined: Jan 24, 2011
Nov 20, 2011 02:05:29
I am using ibm jdk1.4, while hashing i stuck here
HMAC-SHA-1 implementation not found
i am sharing sample code, please help if anyone having any idea about this.
hmac_sha1 = MessageDigest.getInstance("HMAC-SHA-1", "CryptixCrypto");
sha1key = Hex.fromString(astrKey);
tmp = hmac_sha1.digest(astrData.getBytes());
output = Hex.toString(tmp);
Joined: Sep 21, 2011
Nov 20, 2011 03:11:33
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.
I agree. Here's the link:
subject: java.security.NoSuchAlgorithmException: MessageDigest HMAC-SHA-1 implementation not found
How do I use my functioning Java?
MessageDigest with SHA 256 algorithm fails
Algorithm DES not available
want to use the SHA256 Algorithm in J2SDK 1.4
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013