RE: [PHP] PHP & PGP
| From: | John Horton | Date: | Wed, 22 May 2002 15:48:59 +0000 |
| Subject: | RE: [PHP] PHP & PGP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-98753@lists.php.net to get a copy of this message | ||
calculate a hash of the pass the user enters and store that. When the user
enters a pass again to get the data, then hash this pass and see if it
matches the stored hash. If it does , then send the user the data.
create a table that stores username, and hashed passwords for
authentication.
HTH
-----Original Message-----
From: Boaz Yahav [mailto:berber@netvision.net.il]
Sent: 22 May 2002 17:43
To: PHP General (E-mail)
Subject: [PHP] PHP & PGP
Hi
I need to encrypt some fields in my mysql database.
I need to ask a user for a pass when he enters the data, encrypt it and show
him the data only if he enters
the pass again.
I know that pgp has a module that works with passwords instead of keys. I
never tried this on Linux though.
Any help will be appreciated.
thanks
berber