Home >Backend Development >PHP Tutorial >Discuz forum passwords and encryption rules

Discuz forum passwords and encryption rules

高洛峰
高洛峰Original
2017-02-06 16:18:191826browse

Discuz password encryption rules:

md5(md5('string').'Fixed string');

The fixed string is randomly generated when registering a user. And stored in the salt field of the data table pre_ucenter_members.

Example: If the password is 123456789 and the fixed string is jb51, then the encryption rule is: md5(md5('123456789').'jb51'); The result is: 96122ff0dd306c912aab15adccf21df1

DiscuzSecret Encryption Rules:

The encryption process is to encrypt the value first. For example, my question is "the last four digits of the driver's license" and the value of value is 7. The MD5 of 7 is 8f14e45fceea167a5a36dedd4bea2543. I The answer is "1v1.name". Here, put the MD5 values ​​​​of 1v1.name and 7 together, that is, "1v1.name8f14e45fceea167a5a36dedd4bea2543". The encrypted MD5 value is "f5d8e00a4ebc9ead4611c04706ae05fd". Then take the 8 bits from 17th to 24th. The password "4611c047" 4611c047 is the password in the database.

During this process, you must check the value of each security question in the source code.

The above is the Discuz forum password and password encryption rules introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank you all for your support of the PHP Chinese website!

For more articles related to Discuz forum passwords and password protection encryption rules, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn