package homework.dao;
import java.security.*;
public class getmd5 {
//全局数组
private final static string[] strdigits = {
"0", "1", "2", "3", "4", "5", "6", "7","8", "9", "a", "b", "c", "d", "e", "f"};
public getmd5() {
}
// 返回形式为数字跟字符串
private static string bytetoarraystring(byte bbyte) {
int iret = bbyte;
//system.out.println("iret="+iret);
if (iret < 0) {
iret+=256;
}
int id1 = iret / 16;
int id2 = iret % 16;
return strdigits[id1] + strdigits[id2];
}
// 返回形式只为数字
private static string bytetonum(byte bbyte) {
int iret = bbyte;
system.ou