使用java语言实现MD5的加密算法 测试通过
public static void main(String args[]) {
MD5 md5 = new MD5();
if (Array.getLength(args) == 0) {
System.out.println("MD5 Test suite:");
System.out.println("MD5(\"1\"):" + md5.getMD5ofStr("1"));
System.out.println("MD5(\"123456\"):" + md5.getMD5ofStr("123456")
+ " length is :" + md5.getMD5ofStr("123456").length());
} else {
System.out.println("MD5(" + args[0] + ")="
+ md5.getMD5ofStr(args[0]));
}
}