如何解码密码 [英] How Decode Password
问题描述
我有一个旧数据库,当我加入用户表时,我会看到
I have an old database and when I join the table of user I see
"username"=>"Mark"
"password"=>"db55668c3b3ea5877670599dce51abda"
"encrypted_password"=>"1fd0eb3ad6e4d1229012bc5ab872b841b25b7930557e49ed3ec7f573b28157b8aed2bdd1e5d0c368752ed6034653bf47fc11cb6e5a83d599c8a9455666827e64"
"password_salt"=>"gLwk7qWpxomnujSQyrKP"
和其他表格
nickAdmin : admin
passAdmin : UG0EMA0iBzJaaQJjVHcFdVJrWSNRIQ==
我的问题是每种加密的类型是什么,如何解码?
my question is What the type of each encryption and how I can Decode?
谢谢
推荐答案
Marks的password
看起来像是十六进制编码的哈希.对它进行Dehexing可获得128位,因此可能是md5哈希,但也可以是任何128位哈希,或使用存储在其他位置的密钥进行的128位加密.
Marks's password
looks like a hex encoded hash. Dehexing it gets 128 bit so maybe a md5 hash, but it could any 128 bit hash, or 128 bit encryption with the key stored elsewhere.
encrypted_password可能表示已加盐的哈希密码.不要打扰这个.
encrypted_password with salt probably indicates a salted hashed password. Don't bother attacking this.
passAdmin-看起来是base64编码的,但不是纯文本密码.
passAdmin - looks base64 encoded but not to a plain text password.
最好的选择是找到与每个密码相关的代码,并按照相同的算法生成新密码.
Best bet is to find the code associated with each of these passwords and follow the same algorithm to generate a new password.
这篇关于如何解码密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!