DataUtil { public static String encryptPassowrd(final String rawPassword) { return ENCODER.encode(rawPassword); }  static String md5For16(final String msg); static String md5(final String msg); static byte[] base64Decode(final String content); static String base64Encode(final byte[] content); static String encryptPassowrd(final String rawPassword); static boolean matchPassword(final CharSequence rawPassword, final String password); static String encrypt(final String password); static String decrypt(final String password); static String byte2HexStr(final byte[] bs); static byte[] hexStr2Byte(final String hex);  }
@Test public void encryptPassowrd() { String str1 = "123456"; String str2 = DataUtil.encryptPassowrd(str1); Assert.isTrue(DataUtil.matchPassword(str1, str2), ErrorCodeDef.SYSTEM_ERROR_10001); }