RE: [PHP] Decrypt Function?

From: Date: Sun, 25 Mar 2001 23:57:00 +0000
Subject: RE: [PHP] Decrypt Function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45541@lists.php.net to get a copy of this message
Unix "Crypt" function is a one way encrypytion algorithm therefore you can not technically decrupted as such. The way that you can check to see if the given uncrypted value is equals to its crypted value is to 1) Crypt the string with the same "salt" 2) Compare this with the crypted version If these 2 are the same then you assume that the 2 strings are equal. If you really want to "decrypt" the string i.e. turn the encrypted version into its original readable text then you'll have to use Mcrypt() functions in PHP instead (if you have PHP 4 and above ). There are also other Encrytion functions available, check in the manual: http://www.php.net/manual/en/ref.mcrypt.php > -----Original Message----- > From: Chris Anderson [mailto:chrisderson@ameritech.net] > Sent: Saturday, March 24, 2001 8:44 AM > 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 (#45541) next »