PHP is almost encrypted!

Source: Internet
Author: User
Tags crypt md5 hash
I recently used PHP, So I went online to find some information! I have accidentally read this article and recommended it to you.

I recently used PHP, So I went online to find some information! I have accidentally read this article and recommended it to you.

Because I prefer SQL injection.
Many websites, such as aspphpjsp, have been detected before, after, and after.
It is found that the md5 encryption algorithm is basically used.
It is said that MD5 cannot be undone.
MD5 cannot be reversed, but it can be cracked.
You only need to save the commonly used password MD5 to the database.
Others only need to provide the MD5 password for database comparison to restore the password.
Www.xmd5.org outside China
Both provide online cracking
Have many webmasters ever been infiltrated? The largest part is the leakage of the administrator password caused by SQL injection.
Then break into the background
I found the PHP built-in function crypt very good.
Cooperation with MD5 is more invincible
$ Pass = '000000 ';
Echo "after MD5 encryption". md5 ($ pass )."
"; // Insecure
Echo "after crypt encryption". crypt ($ pass )."
"; // The password will change after refreshing.
Echo "after crypt complex encryption". crypt ($ pass, substr ($ pass, 0, 2 ))."
"; // Still uncomfortable
Echo "unencrypted". md5 (crypt ($ pass, substr ($ pass )))."
"; // How can I break this password now ???
?>
The final password or 32-bit is regarded as MD5 encryption.
However, no matter how huge the MD5 HASH value of the other party is, a few terabytes of data cannot be cracked.

Of course, the above ideas can be used in some other languages, such as asp, asp.net, and jsp.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.