Encode and decode sessions values
Amigura
This is a simple class that can be used to encode and decode session values to make it harder to obtain private session values for people with access to session data.
It uses base64 encoding and mcrypt_encrypt encryption to set the values of one or more session variables values.
The class may also retrieve the value of an encoded session variable and decode it.
It can be easley modified to work with other varibles.
Posted in PHP Scripts |