@Test public void testencode() throws Exception { String password = "1"; String encrypted = "c4ca4238a0b923820dcc509a6f75849b"; Assert.assertEquals(EncryptUtil.encode(password, "MD5"), encrypted); Assert.assertEquals(EncryptUtil.encode("830826"), "92f9c92d38fd87bdaeae685f9be36183"); }
public static String encode(String password) { return encode(password, "MD5"); }
EncryptUtil { public static String encode(String password) { return encode(password, "MD5"); } }
EncryptUtil { public static String encode(String password) { return encode(password, "MD5"); }  }
EncryptUtil { public static String encode(String password) { return encode(password, "MD5"); }  static String encode(String password); static String encode(String password, String algorithm); }
EncryptUtil { public static String encode(String password) { return encode(password, "MD5"); }  static String encode(String password); static String encode(String password, String algorithm);  }