Re: encryption problems

From: Date: Thu, 13 Apr 2000 16:58:17 +0000
Subject: Re: encryption problems
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-17882@lists.php.net to get a copy of this message
By the way, with the new export rules, can we now bundle a simple crypt implementation with PHP? Zeev On Thu, 13 Apr 2000, Rasmus Lerdorf wrote: > Unless you have built the addon dl/crypt module into PHP, you will not > have an encrypt() function > > On Thu, 13 Apr 2000, Olivier LALOUX wrote: > > > Hi, > > > > I use the php3 release on an Apache server. > > I tried to create an authentification script. > > I used the C function "crypt" but when I crypted my password to compare one I > > have into my database, the crypted string was always different. I crypted many time my string: > > everytime the result was different. > > Then I decided to use the PHP function "encrypt" but the server returned the > > following message: "Fatal error: Call to unsupported or undefined function encrypt() in > > /directory/script.php3 on line 3". > > The function is called as follows: > > > > $Query="UPDATE table SET field1 = '" . encrypt($data,2,$key) . "' > > WHERE field2='$value';"; (the famous line 3) > > > > What sould be the problem? > > > > Thanks, > > > > Olivier LALOUX > > > > > -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#17882) next »