Try http://www.php.net/md5.

Use md5 to encrypt the password, then when you need to check from login just
encrypt what is given, and see if this matches the md5 found in the
database.

- David

"Rob Packer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>     I use PayPal to generate a username and password and then write them
to
> the .htpasswd file. If I were to switch to using a database (because
> .htaccess seems to always prompt twice!) how would I perform the
comparison
> for the passwords? It would seem that everytime you generate an encrypted
> password it's different. So how would you compare them? Also, does anyone
> know what the encryption method used by PayPal is?
>
> Thanks for any help...
>
> Robert Packer
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to