解密md5密码 [英] decryption of md5 password

查看:122
本文介绍了解密md5密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用密码盐值的情况下解密存储在数据库中的加密MD5密码

how to decrypt the encrypted MD5 password stored in database without using password salt value

推荐答案



MD5无法解密.是不可逆的.如果需要匹配密码,则需要对用户输入的密码进行加密,并将加密的数据与数据库数据(已加密)进行匹配.

希望这对您有帮助,
谢谢
-Amit Gajjar
Hi,

MD5 can not be decrypted. it''s irreversible. If you need to match your password then you need to encrypt user entered password and match encrypted data with database data(it''s already encrypted).

Hope this helps you,
Thanks
-Amit Gajjar


哈希函数是单向函数.但是可以使用字典方法或彩虹表 [ 但问题是您的目的是什么.
A)破解一些东西-我们无济于事!
B)将密码恢复功能添加到您的站点.比使用随机的临时密码模式.
C)如果您确实需要可恢复的密码.切勿以纯文本形式存储密码.当解密密钥在代码中或附近时,请勿使用加密.我可以想象只有一种安全的方法:创建一个证书并将其存储在应用程序池用户的配置文件中.使用该证书来加密和解密密码.您还可以使用外部加密设备来存储证书,因此只有对服务器具有物理访问权限的人才能获得证书.
Hash functions are meant to be unidirectional functions. But they can be reverted using dictionary methods or rainbow tables[^]. The 128 bit MD5 is more likely to be "decrypted" as the 16 bit SHA1.
But the question is rather what your purpose is.
A) Crack something - we won''t help!
B) Add password recovery functionality to your site. Than use random temporary password pattern.
C) If you really need revertible password. Never store your passwords in plain text. And don''t use encryption when the decryption key is in the code or near it. I can imagine only one somehow safe method: create a certificate and store it in the application pool user''s profile. Use that certificate to encrypt and decrypt the password. You can use also external cryptic device to store the certificate, thus only the one who has physical access to the server could ever get it.


并且如果我使用SHA1而不是MD5?
and if i use SHA1 instead of MD5???


这篇关于解密md5密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆