Md5密码破解
来源:互联网 发布:nginx配置php版本 编辑:程序博客网 时间:2024/04/29 10:19
转自http://wenku.baidu.com/link?url=9-2fhVF_2yzq0wvVM5dO-veOfiZtJ7gkkG3o9fTh7JomSpviTb7QKQQ96VK6k5OS_jcKkyReA1rfwP3hVy2t-Ml3YhnEamQPAnexssEcLg3
在网络中MD5是著名的不可逆算法,但是如果知道MD5的加密的字符串则可以通过自己的加密算法对明文进行加密,对加密后的密文与字符串匹配;匹配成功,表示找到明文;但是此程序的时间耗费较高!仅提供一个解密的方法!
public class MD5jiemi {private static final char code[] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ',', '.', '/', ';', '\'', ':', '"', '[', ']', '{', '}', '\\', '|', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '_', '+', '=', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };/*** 六位密码破解*/public static void Md5_6(String md5Password) { String testPassword; MD5 md5Obj = new MD5(); String result; for (int a = 0; a < code.length; a++) { testPassword = ""; testPassword += code[a]; for (int b = 0; b < code.length; b++) { testPassword = testPassword.substring(0, 1); testPassword += code[b]; for (int c = 0; c < code.length; c++) { testPassword = testPassword.substring(0, 2); testPassword += code[c]; for (int d = 0; d < code.length; d++) { testPassword = testPassword.substring(0, 3); testPassword += code[d]; for (int e = 0; e < code.length; e++) { testPassword = testPassword.substring(0, 4); testPassword += code[e]; for (int f = 0; f < code.length; f++) { testPassword = testPassword.substring(0, 5); testPassword += code[f]; // System.out.println(testPassword); result = md5Obj.getMD5ofStr(testPassword); if (md5Password.equals(result)) { System.out.println("密码已经破解!"); System.out.println("明文是:" + testPassword); System.out.println("密文是:" + md5Password); return; } } } } } } }}/*** 七位密码破解,写法详见六位密码破解*/public static void Md5_7(String md5Password) {}/*** 八位密码破解,写法详见六位密码破解*/public static void Md5_8(String md5Password) {}public static void main(String[] args) { MD5 md5Obj = new MD5(); // MD5加密对象 String md5Password = md5Obj.getMD5ofStr(password); // 把这个认为我要找到的经过加密的密码 System.out.println("密码破测试中!"); System.out.println("明文是:" + password); System.out.println("密文是:" + md5Password); System.out.println("程序时间计时器!"); System.out.println("开始时间:" + new Date()); Md5_6(md5Password); // 依次调用6位破解到20位破解.. // Md5_7(testResult); System.out.println("结束时间:" + new Date());}private static final String password = "aaa918";/*** 这里只是一个实现的方法, 在自己破解的时候把自己的密文直接贴出来, * 进行破解, 这里只是进行一个aaaBc8加密的测试*/private static final String MD5PWD = "你的数据库中的密文";}
0 0
- Md5密码在线破解
- MD5密码破解数据库!!
- Md5密码破解
- 彩虹表破解md5密码
- 如何破解密码的哈希值,破解双MD5密码值
- Md5密码破解武器大揭密
- MD5密码破解原理和网站
- Rainbow table彩虹表破解md5密码
- 密码破解之RADIUS-CHAP-MD5
- 密码破解之RADIUS-CHAP-MD5
- 免费MD5解密网站,轻松破解md5密码,mysql5/mysql323,ntlm,salt密码
- 免费的在线密码破解站点(MD5 SHA WPA ...)
- 用Gpu破解md5、sha1等加密密码的软件
- RainbowCrack + LM Tables 破解SAM md5 sha1密码
- 彩虹表破解开机密码、MD5算法等的原理
- 免费的在线密码破解站点(MD5 SHA WPA ...)
- QQ密码md5破解(无聊玩 ,别动歪脑筋)
- 破解MD5
- 配置PAC脚本环境
- 编译uboot-TI DM8186<<TI81XX PSP U-Boot>>
- 计数排序_legend
- SQL预编译
- Dynamics CRM2013/2015 禁止欢迎界面(Disable the Welcome Screen)
- Md5密码破解
- 2014项目一---点圆的关系
- 初窥c++11:lambda函数及其用法
- 春暖花开,我的博客生涯就此开启!
- 2014-项目二---比较
- Oracle中的动态SQL的execute immediate 的各种语法
- socket client 防卡死
- ACM基本输入输出
- hdu DP题集