RE: [PHP] Decrypt Function?

From: Date: Mon, 26 Mar 2001 00:37:00 +0000
Subject: RE: [PHP] Decrypt Function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45546@lists.php.net to get a copy of this message
> 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 : valter.santos@wedo.pt Mobile: +351 93 9650075 WeDo Consulting - http://www.wedo.pt ............................................ > -----Original Message----- > From: Chris Anderson [mailto:chrisderson@ameritech.net] > 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? >

« previous php.general (#45546) next »