PDA

Click to See Complete Forum and Search --> : encryption and decryption!!


kenny_oh
Oct 13th, 2005, 09:20 AM
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??

AIS4U
Oct 13th, 2005, 12:17 PM
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.

ninjanutz
Oct 13th, 2005, 04:41 PM
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()

kenny_oh
Oct 13th, 2005, 08:08 PM
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.....

ninjanutz
Oct 13th, 2005, 08:50 PM
ive never used md5() so i cant help u there ... im sure someone else can

visualAd
Oct 14th, 2005, 02:33 AM
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.