如何反转散列和加盐密码? [英] How to reverse hashed and salted password ?
问题描述
我正在使用 vBulletin 并且登录使用它来交叉引用数据库.
I am using vBulletin and the login uses this to cross-refer to the database.
md5(md5($pass).$salt)
我如何制作一个 PHP 脚本,这样每个密码输入都会自动被散列和加盐,以便它能够通过 vBulletin 数据库进行身份验证?
How do i make a PHP script such that every password input will automatically be hashed and salted as well so that it is able to authenticate with the vBulletin database ?
推荐答案
如何反转散列和加盐密码?
How to reverse hashed and salted password ?
散列是一种单向过程.即如果你传递一个字符串,你会得到一个无法反转的哈希值,它可以用于比较目的.
Hashing is a one-way process. i.e. If you pass a string you get a hash which cannot be reversed., It can be used for comparison purposes.
一些散列算法是 md5()
[不认为安全]、sha-1
、sha-256
Some of the hashing algorithms are md5()
[not considered secure] , sha-1
, sha-256
利用crypt()
再加上一些强盐.如果你有 PHP 5.5 ,那么你可以很好地利用 password_hash()
这篇关于如何反转散列和加盐密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!