Re: help!
| From: | Stig Bakken | Date: | Thu, 29 Jul 1999 16:15:30 +0000 |
| Subject: | Re: help! | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-184@lists.php.net to get a copy of this message | ||
The PHP function crypt() provides one-way DES encryption. You cannot
de-crypt the results again. You should build PHP with mcrypt support
instead, check out the FAQ for more info.
- Stig
On Fri, 28 May 1999, webmaster wrote:
> Hi,Dear Sir/Madam:
>
> I have a question about PHP function crypt(), I want to know how to encrypt a crypt
> string.
> I use the function like following, it is not work. Thank You in advance.Please tell me ASAP.
> thank you.
>
> This is program:
> <?php
> echo(crypt( "thisisphp", "cw")). "<BR>";
> $test1=crypt( "thisisphp", "cw");
> echo $test1,"<BR>";
> echo(crypt($test1, "cw")). "<BR>";
> echo(crypt($test1)). "<BR>";
> ?>
>
> Following is result, I want to see the string " thisisphp ", but it is not.
> cw2vehJWWhZXo
> cw2vehJWWhZXo
> cweV2KEhfAC2w
> 6mCy1JivE6hes
>
> Best Regards!
> Bill
>