Re: Decrypt Function?
| From: | Chris Anderson | Date: | Sat, 24 Mar 2001 01:03:27 +0000 |
| Subject: | Re: Decrypt Function? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45554@lists.php.net to get a copy of this message | ||
Ahhhh, I see. Thank youthat is actually a great idea. Why didn't I think of
that?
/me hits himself in the head
----- Original Message -----
From: "Opec Kemp ( Ozemail )" <okemp@ozemail.com.au>
To: "PHP List" <php-general@lists.php.net>
Cc: <chrisderson@ameritech.net>
Sent: Sunday, March 25, 2001 6:57 PM
Subject: RE: [PHP] Decrypt Function?
> 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?
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>