Encrypt/Decrypt
| From: | Nick Richardson | Date: | Wed, 27 Feb 2002 00:14:32 +0000 |
| Subject: | Encrypt/Decrypt | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86341@lists.php.net to get a copy of this message | ||
Forgive me if this is a very basic question, i can't find the info in the
manual/function list.
I want to encrypt a password w/ a salt string that is randomly generated (10
chars), and then prepend the salt string onto the beginning of the encrypted
string, save the string in a database, and move on.
Later, i want to be able to retrive the encrypted string w/ the salt in it,
grab the salt and use it to decrypt the password. - Is this possible and how
would it be done?
Thanks in advance for any suggestions.
//Nick Richardson
//esoteric.web@gte.net
//webmaster@moderngarage.com
--------------------------------------------------------------
-- We must come to see that the end we seek, is a society --
-- at peace with itself. A society that can live with its --
-- concience. That will be a day not of the white man, not --
-- of the black man... That will be the day of man, as man! --
-- -Dr. Martin Luther King Jr. --
-- -March 25th, 1965 --
--------------------------------------------------------------