public class MD5_Test { public static String md5_1(String oldStr) { char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; try { byte[] oldBytes = oldStr.getBytes(); MessageDigest md = MessageDigest.get…