密码加密

master
yuqin 4 years ago
parent 26b98f81cb
commit 799fbb4f2c
  1. 3
      src/main/java/com/yipin/liuwanr/util/MD5.java

@ -4,6 +4,9 @@ import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
public final class MD5 { public final class MD5 {
public static void main(String[] args) {
System.out.println(encrypt("admin"));
}
public static String encrypt(String strSrc) { public static String encrypt(String strSrc) {
try { try {

Loading…
Cancel
Save