package test; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class MD5Util { //第一种实现 public final static String MD5(String s) { char hexDigits[]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','…