The discuz password encryption method is recorded here.
When discuz is registered, the password is encrypted according to one rule.
For example, if my password is 123456
Echo md5 ("123456 ");
Output:
E10adc3949ba59abbe56e057f20f883e
The database value is:
7839dc9437013b5c11a5d86e9b8350e9
Note:
There is a field named salt whose value is d82a35.
In fact, this is a random string.
The value after the first md5 plus the salt value (salt) and then md5 is the value to be obtained.
Test: www.jbxue.com
Echo md5 (md5 ('200'). 'd82a35 ');
The result is 7839dc9437013b5c11a5d86e9b8350e9, which is correct.
In versions earlier than php5.5, there is no good encryption mechanism. This is a good method. The password security has been greatly enhanced.
Php5.5 provides more reliable and convenient encryption methods.
Extension:
Password_hash ()
Http://www.php.net/manual/zh/function.password-hash.php