discuz security question algorithm_PHP tutorial
Jul 21, 2016 pm 03:55 PM
Today, a friend asked me if the answer to a discuz security question could be forgiven. Or crack it. I noticed a password before, but I only remembered it was very short. I thought it was MD5 taken from substr. Finally, I looked at the source code for a long time and found that it was indeed MD5 encrypted. However, the encryption process was a bit confusing
< ;option value="0">No security question</option>
<option value="1">Mother's name</option>
<option value="2"> ;Grandpa’s name</option>
<option value="3">City where father was born</option>
<option value="4">The name of one of your teachers Name</option>
<option value="5">Model of your PC</option>
<option value="6">Name of your favorite restaurant< /option>
<option value="7">The last four digits of the driver's license</option>
The encryption process is to encrypt the value of value first. For example, my question is " The value of the "last four digits of the driver's license" value is 7. The MD5 of 7 is 8f14e45fceea167a5a36dedd4bea2543. My answer is "1v1.name". Here, the MD5 values of 1v1.name and 7 are put together, that is, "1v1.name8f14e45fceea167a5a36dedd4bea2543" The encrypted MD5 value is "f5d8e00a4ebc9ead4611c04706ae05fd" and then take the 8-digit password from 17th to 24th "4611c047" 4611c047 is the password in the database
Demo
7
8f14e45fceea167a 5a36dedd4bea2543
1v1.name8f14e45fceea167a5a36dedd4bea2543
f5d8e00a4ebc9ead4611c04706ae05fd
4611c047

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Implementing Machine Learning Algorithms in C++: Common Challenges and Solutions

Improved detection algorithm: for target detection in high-resolution optical remote sensing images

Application of algorithms in the construction of 58 portrait platform

How should the Java framework security architecture design be balanced with business needs?

Groundbreaking CVM algorithm solves more than 40 years of counting problems! Computer scientist flips coin to figure out unique word for 'Hamlet'

How to implement PHP security best practices

Implementing Machine Learning Algorithms in C++: Security Considerations and Best Practices

Security configuration and hardening of Struts 2 framework
