Praetorian503 Posted December 24, 2012 Report Posted December 24, 2012 Here's the simple java security tutorial on generating MD5 hash of input text using java.security API functions.import java.security.MessageDigest;public class MD5Class{ public static void main(String args[]) throws Exception { String input = "test text"; MessageDigest m = MessageDigest.getInstance("MD5"); m.update(input.getBytes("UTF8")); byte s[] = m.digest(); String result = ""; for (int i = 0; i < s.length; i++) { result += Integer.toHexString((0x000000ff & s[i]) | 0xffffff00).substring(6); } System.out.println("MD5 Hash of input text" + input); System.out.println(result); }} Quote