1.javaå¦ä½ç®md5ç ï¼
javaå¦ä½ç®md5ç ï¼
å¯ä»¥å©ç¨JDKèªå¸¦çMD5æ¥å å¯ãpublic class MD5Util {public final static String MD5(String s) {
char hexDigits[]={ '0',源码android 程序锁 源码'1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
try {
byte[] btInput = s.getBytes();
// è·å¾MD5æè¦ç®æ³ç MessageDigest 对象
MessageDigest mdInst = MessageDigest.getInstance("MD5");
// 使ç¨æå®çåèæ´æ°æè¦
mdInst.update(btInput);
// è·å¾å¯æ
byte[] md = mdInst.digest();
// æå¯æ转æ¢æåå è¿å¶çå符串形å¼
int j = md.length;
char str[] = new char[j * 2];
int k = 0;
for (int i = 0; i < j; i++) {
byte byte0 = md[i];
str[k++] = hexDigits[byte0 >>> 4 & 0xf];
str[k++] = hexDigits[byte0 & 0xf];
}
return new String(str);
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
public static void main(String[] args) {
System.out.println(MD5Util.MD5(""));
System.out.println(MD5Util.MD5("å å¯"));
}
}
2024-11-26 21:101335人浏览
2024-11-26 21:021576人浏览
2024-11-26 20:561532人浏览
2024-11-26 20:36602人浏览
2024-11-26 20:231681人浏览
2024-11-26 20:071146人浏览
1.珊瑚虫QQIP显示珊瑚虫QQIP显示 珊瑚虫软件中的IP显示功能因其对QQ用户的影响,成为了一项备受讨论的特性。这款工具提供了四种不同的IP显示设置,用户可以根据自己的需求进行个性化定制:
1.360phpddos360phpddos çµèç æ¯ãçç«ç§é¦ãçä½è æ¯è°ï¼ çç«ç§é¦çµèç æ¯