Is there any way to decrypt md5 in php ?
I need to decrypt the value that comes from a cookie to pick up user information
Is there any way to decrypt md5 in php ?
I need to decrypt the value that comes from a cookie to pick up user information
Once a data is encrypted in md5 you can only compare it, for example a login system, when you create your account your password is encrypted and saved in the database, when you try to log in the password you type in the password field is encrypted again and the result is compared to what it has in the database if the result is true the password is correct and you can log in.
Depending on the usage there are some online dictionaries, where they show how a given string is in md5 plus is not recommended, if you really want a solution to your problem it would be interesting to talk about what you have in mind so that we can help: p>
Jefferson MD5 is a unidirectional hash algorithm and therefore, once encrypted, data can no longer be decrypted.
Jefferson as Alexander and Edilson have spoken, is not recommended, and I believe that it is not even possible to decrypt a hash generated via md5.
But I have a suggestion for you, link , mcrypt is a PHP function that does the encryption and has the pair of it that decrypts ( link ).
I think it makes more sense for you to use a tool for encryption instead of a hash.
Abs,