aspose file tools
The moose likes Security and the fly likes MD5 encryption and decryption Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "MD5 encryption and decryption" Watch "MD5 encryption and decryption" New topic
Author

MD5 encryption and decryption

venugopal velvadapu
Greenhorn

Joined: Nov 26, 2004
Posts: 1
Hi,
i am using JavaTM Cryptography Extension 1.2.2

i am unable to generate key for HmacMD5

my code is :

key = KeyGenerator.getInstance("HmacMD5").generateKey();


error is :

Exception in thread "main" java.security.NoSuchAlgorithmException: Cannot find any provider supporting HmacMD5
at javax.crypto.Cipher.getInstance(DashoA6275)
at Sample.DataEncrypter.setUp(DataEncrypter.java:30)
at Sample.DataEncrypter.main(DataEncrypter.java:5


help me please ..............
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Apparently you don't have such an implementation available in your classpath.

Try this tip from the Java Developer's Almanac to print out all message digest algorithms available in your classpath. If you need some specific algorithm that's missing, try and see if BouncyCastle has it.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: MD5 encryption and decryption
 
Similar Threads
MD5 Hash and JCE
HMAC-MD5 hashing algorithm
MAC differs 1.3 vs 1.4
when to use ArrayList and when to use HashMap
Algorithm DES not available