> Is there any way to decrypt dat encrypted using the crypt 
> function? If not, then what purpose does that function have?

Encrypt data!  ;)
crypt is a one-way finction, it produces a hash from some
plain text, and its result is suitable to store sensitive
data in database, like passwords...

If you want to store information that you want to get back to
the initial state (plain text) you should not use crypt() or
md5()...

If you only want to store encrypted passwords crypt is enought..
When you want to confirm that a inputed text is equals to the 
stored and encrypted password, you just have to encrypt the inputed text
and compare it with the previously stored password...



............................................
Valter Santos
WEB/WAP Consultant

Email : [EMAIL PROTECTED]
Mobile: +351 93 9650075

WeDo Consulting - http://www.wedo.pt
............................................


> -----Original Message-----
> From: Chris Anderson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 10:44 PM
> To: PHP
> Subject: [PHP] Decrypt Function?
> 
> 
> Is there any way to decrypt dat encrypted using the crypt 
> function? If not, then what purpose does that function have?
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to