I\'m building a with-source system which I am giving out on the \'net for providing adoptable virtual pets. The system will be owned mainly by kids. Since I want it to be us
You are looking for "one time padding" encryption. It takes a key and does modulus addition to characters to create the encrypted string.
function ecrypt($str){
$key = "abc123 as long as you want bla bla bla";
for($i=0; $i
So that's simple string encryption. What I would do is serialize the array of the user's parameters and pass it as a variable in the link:
$arr = array(
'pet_name'=>"fido",
'favorite_food'=>"cat poop",
'unique_id'=>3848908043
);
$param_string = encrypt(serialize($arr));
$link = "/load_pet.php?params=$param_string";
In load_pet.php you should do the opposite:
$param_string = $_GET["params"];
$params = unserialize(decrypt($param_string));
Bam.