Home > Article > Backend Development > The TV series starring Chen Baoguo PHP Invincible is almost an encryption method!
Because I like sql injection
I have tested many websites aspphpjsp before and after
I found that they basically use the md5 encryption algorithm
They say that MD5 is irreversible and cannot be broken
MD5 is irreversible but can be broken by violence
You only need to use commonly used passwords MD5 is then stored in the database
Others only need to provide the MD5 password for database comparison to restore the password
Domestic www.cmd5.com and foreign www.xmd5.org
All provide online blasting
Have many webmasters been hacked? The biggest part is that the administrator password was leaked by SQL injection
and then went into the background to cause damage
I found that PHP's built-in function crypt is very good
coupled with MD5, it is even more invincible
$pass = '123456';
echo " After MD5 encryption ".md5($pass)."
"; //Unsafe
echo "After crypt encryption".crypt($pass)."
"; // Messy password refresh It will change after
echo "crypt after complex encryption".crypt($pass,substr($pass,0,2))."
"; //Still unhappy
echo "After invincible encryption".md5( crypt($pass,substr($pass,0,2)))."
"; // How can a hacker break this password now? ? ?
?>
The last password is still 32 bits. At first glance, I thought it was MD5 encryption
But no matter how huge the other party’s MD5 HASH value is, several T of data cannot be cracked
Of course, the above idea can be used in some other languages such as asp , asp.net, jsp, etc.
The above introduces the PHP invincible near-encryption method of the TV series starring Chen Baoguo! , including the content of the TV series "The Invincible" starring Chen Baoguo. I hope it will be helpful to friends who are interested in PHP tutorials.