RE: [PHP] encrypting session variables
| From: | Tyrone Mills | Date: | Tue, 10 Jul 2001 01:30:46 +0000 |
| Subject: | RE: [PHP] encrypting session variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57051@lists.php.net to get a copy of this message | ||
Make an MD5 hash using the session variable. Make it again (with the same
seed) before using it, if the hashes don't match, it's been messed with.
You can store the hash in a MySQL DB, pass it on the URL, write it out to a
local file, all kinds of things...
-----Original Message-----
From: Brad Wright [mailto:bradwright@optushome.com.au]
Sent: Monday, July 09, 2001 6:08 PM
To: PHP General List
Subject: [PHP] encrypting session variables
Hi all,
Is there a simple way to encrypt session variables. If so, is there a method
to 'decode' the encrypted session variable when required?.
Thanks in advance,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net