Home  >  Article  >  Is md5 encryption reversible?

Is md5 encryption reversible?

青灯夜游
青灯夜游Original
2019-06-12 11:05:0611951browse

Is md5 encryption reversible?

As of now, the MD5 encryption algorithm is irreversible.

The reason why MD5 is irreversible is that it is a hash function (also called hash function, hash function). It is a one-way cryptosystem, that is, an irreversible mapping from plaintext to ciphertext. Only the encryption process There is no decryption process).

The hash function can change an input of any length to obtain a fixed-length output. This fixed-length output is called the hash or message map of the original message. An ideal hash function can get different outputs for different inputs. If two different messages get the same hash value, we call it a collision.

The hash algorithm is used, and part of the information in the original text is lost during the calculation process.

One MD5 can theoretically correspond to multiple original texts, because there are finitely many MD5s and infinitely many original texts.

MD5 code is a 128-bit binary number. There are up to 2^128 possibilities, but the number of strings obviously has countless possibilities.

The above is the detailed content of Is md5 encryption reversible?. For more information, please follow other related articles on 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