|
-
Oct 13th, 2005, 09:20 AM
#1
Thread Starter
Fanatic Member
encryption and decryption!!
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??
Last edited by kenny_oh; Oct 14th, 2005 at 04:46 AM.
-
Oct 13th, 2005, 12:17 PM
#2
Frenzied Member
Re: encryption and decryption!!
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.
-
Oct 13th, 2005, 04:41 PM
#3
Hyperactive Member
Re: encryption and decryption!!
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()
-
Oct 13th, 2005, 08:08 PM
#4
Thread Starter
Fanatic Member
Re: encryption and decryption!!
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.....
-
Oct 13th, 2005, 08:50 PM
#5
Hyperactive Member
Re: encryption and decryption!!
ive never used md5() so i cant help u there ... im sure someone else can
-
Oct 14th, 2005, 02:33 AM
#6
Re: encryption and decryption!!
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|