Can phpmd5 encryption be cracked?

Source: Internet
Author: User
Some may use dictionary attacks to break down the md5 encryption system. Although this is a brute-force decryption, it is very effective, because the user password of most systems is not very long, so the final data encoded by md5 can be cracked through some websites.

The encryption technology we use in php website development is MD5, so we adoptCan MD5 encryption algorithms be cracked or can md5 encryption be reversible?? Let's take a look at two common php Data encryption technologies.
PHP Data encryption technology

The Md5 () and Sha1 () encryption algorithms are unidirectional, and there is no reverse function to obtain the original plaintext data.

Algorithm call:

String md5 (string $ str [, bool $ raw_output = false])

String Sha1 (string $ str [, bool $ raw_output = false])

Parameters

Str

The original string.

Raw_output

If the optional raw_output is set to TRUE, the MD5 message digest is returned in the original 16-byte length binary format.

Return value

MD5 () returns the hash value in the hexadecimal format of 32 characters.

Sha1 () returns the hash value in the hexadecimal format of 40 characters.

USD p = "123456 ";
EchoMd5($ P );
?>

The output result is as follows:

E10adc3949ba59abbe56e057f20f883e

However, using the md5 () function is very insecure. in this way, you can search for md5 decryption on Baidu and find a website for decryption:

Obviously, the result is wrong. our password is 123456 instead of zero.

Based on an md5 () function, we can use multi-layer md5 () algorithm for encryption. because it is one-way, we may wonder why the website can be cracked. In fact, the website is cracked by brute force, they keep saving various codes and passwords and then matching them to get the passwords.

DetailsMD5 cracking methodFor details, refer to: php md5 decryption code sharing (with an interface available for test)

Related articles:

Can php md5 be decrypted?

Php md5 encryption and decryption algorithms and tools (with code)

MD5 encryption tool

Is the above php md5 encryption capable of cracking? For more information, see other related articles in the first PHP community!

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.