posted 13 years ago
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);