|
|
@ -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 { |
|
|
|