This is a pretty nice way to get the MD5 encryption of text using Java. You will need to add the following jar file to your project to accomplish this.
MD5 Library
It’s always good to use some sort of encryption on your passwords or inputs that you don’t want anybody just to get.

import com.twmacinta.util.MD5;
public static String md5Encryption(String strInput) {
    MD5 md5 = new MD5();
    md5.Update(strInput);
    return md5.asHex();
}
 

Leave a Reply

Set your Twitter account name in your settings to use the TwitterBar Section.