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:[EMAIL PROTECTED]]
> 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?
>
--
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]