Akshay Akshay - 7 months ago 55
Java Question

How can I generate an MD5 hash?

Is there any method to generate MD5 hash of a string in Java?

Answer

java.security.MessageDigest is your friend. Call getInstance("MD5") to get an MD5 message digest you can use.