i have use md5() to encrypt data, but i realize that it is a one way encryption........what method decrypt back the hash code back to original data??
Printable View
i have use md5() to encrypt data, but i realize that it is a one way encryption........what method decrypt back the hash code back to original data??
kenny oh:
I think "one way" means exactly what it implies. That is, you can encrypt the file, but you CAN'T decrypt it. That would mean that there is not any way to dcrypt it.
I don't know about md5( ) specifically, but unless you kept a backup copy of the data you may be out of luck.
to be able to encrypt sometihng then decrypt it later is to use the encrypt() function to encrypt and the decrypt() finction to decrypt ... if u want the "one way" only just use crypt()
ok....dont bother which method i use...assume that i use md5(), when i want to login, i encrypt the password to match with the encrypted password in databse, it should be no problem, but after the login password encrypted, the outcome is longer than the password in the database, do u know y?
i hv tried that same word after encrypt using md5(), the output is always exactly the same.....
ive never used md5() so i cant help u there ... im sure someone else can
MD5 is always 32 characters wide. You can also convert it to 4, 32 bit integers if you don't want to store it as a string.