tags:

views:

100

answers:

2

Hi, I need to implement a method to find the MD5 hash of the bytes of the given String. It seems to me that this class is included in the package called com.starbase.util.MD5, but could not find where to download a jar file. Could someone point me to the right place?

A: 

Check out the java.security.MessageDigest class. It provides several hash functions.

svenningsson
+2  A: 

Use Java's built-in MessageDigest. Here's an example (koregan's post) of how to use a MessageDigest with MD5 to hash a String.

Kaleb Brasee