Re: [PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Rens Admiraal
, 2004 8:52 PM *To:* [EMAIL PROTECTED] *Cc:* Mulley, Nikhil; [EMAIL PROTECTED] *Subject:* Re: [PHP] Crypt Function-- Encryption and Decryption What would be the use of a hash if it was easy to recover ? You can use it by storing the hash of a password, en when the user

Re: [PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Rens Admiraal
What would be the use of a hash if it was easy to recover ? You can use it by storing the hash of a password, en when the user supplies you his password in a script, you hash it again... and compare those two hashes... Trying to recover the value from which the hash is the result is called crack

Re: [PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Jon-EIrik Pettersen
Mulley, Nikhil wrote: Hi All, I have a password file , which has all the passwords words encrypted with the Crypt Function I know that Crypt uses one-way algorithm to generate the encryptions and PHP has no Decrypt function , ( but can it be developed to have one ?) But I am eager to know whethe

[PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Mulley, Nikhil
Hi All, I have a password file , which has all the passwords words encrypted with the Crypt Function I know that Crypt uses one-way algorithm to generate the encryptions and PHP has no Decrypt function , ( but can it be developed to have one ?) But I am eager to know whether it is really im

Re: [PHP] crypt() function

2002-10-14 Thread Marco Tabini
Have you considered using md5() instead? On Mon, 2002-10-14 at 16:27, Adam Plocher wrote: > Hello, I am trying to authenticate a password using the crypt() > function. Here's what I got: > > if (crypt($_SERVER['PHP_AUTH_PW'],$data[1]) == $data[1]) > { > ... > } > > $data[1] being the s

[PHP] crypt() function

2002-10-14 Thread Adam Plocher
Hello, I am trying to authenticate a password using the crypt() function. Here's what I got: if (crypt($_SERVER['PHP_AUTH_PW'],$data[1]) == $data[1]) { ... } $data[1] being the salt.. It half-way works... If the users password is 'blah' it will authenticate fine, but if you append anyt

[PHP] PHP crypt() function stalls page on Raq2 with PHP4.03pl1

2001-05-07 Thread Crocket
Hi yall, Before php4.03pl01 , PHP 3.07 (from the available rpm's at cobalt's ftp site) was installed on our cobalt raq2. Scripts that were using the crypt() function never gave me any problems until I had php4.03pl01 installed by a cobalt distributor. When I run this simple code : ## Code Enc