Commit eea2e31c authored by Quxl's avatar Quxl

生成密码密文

parent 5b1af547
...@@ -20,4 +20,8 @@ public class Common { ...@@ -20,4 +20,8 @@ public class Common {
public static String encodePassword(String password, String salt) { public static String encodePassword(String password, String salt) {
return StringUtil.toMD5HexString(StringUtil.toMD5HexString(password + salt).toLowerCase().substring(4, 24)).toLowerCase(); return StringUtil.toMD5HexString(StringUtil.toMD5HexString(password + salt).toLowerCase().substring(4, 24)).toLowerCase();
} }
public static void main(String[] args) {
System.out.println(encodePassword("123456", "5e0vt0"));
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment