Hi-
if i want to send secure information to my sister:
1) generate a key on keyfocus on my local machine (not connected to the
web using keyfocus webserver)
2) base64_encode encrypted data using the key (on my local machine)
3) set the cookie on the user machine using the encrypted base64_encoded
value from step 2 ( sister sets cookie using password protected folder
on ipower web host by executing something like
<?php
$str="...edit menu - copy value from step 2 goes here " ;
// base64_encoded encrypted string.
setcookie("visits", $str);
// this sets an encrypted base64 (string) cookie on the computer
echo "an encrypted cookie is now set on your computer";
?>
4) decrypt the cookie ( sister decrypts on local machine using keyfocus
webserver i install )
I would also put some sort of time limit on the cookie for expiring.
Probably could just leave it for when the browser closes.
Does this plan seem like it would work???
Is this a case where i also would use ssl in step 3 (ssl would point to
setcookie script ). Sister would open index.php file in password
protected directory and click a link that would take her to the
setcookie.php file that is ssl protected.
I scammed the code from the web on how to encrypt and decrypt and it
works good (thanks for posting it in the php manual ). now i need to
put all the steps together to send the data to my sister.
this is just the way i thought of it. i am probably confused.
thanks for any help,
marvin