By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,738 Members | 1,875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,738 IT Pros & Developers. It's quick & easy.

encrypting and cookies

P: n/a
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

Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
i seem to have worked out a different system with email.
last time (a year ago) this didnt work as smoothly and i couldnt get it to
work.

i think the first way without email using cookies is more secure.

just a guess though.

thank you,

marvin
Jul 17 '05 #2

P: n/a

"marvin" <le***@me.alone2> wrote in message
news:Xn*************************@24.24.2.167...
Hi-

if i want to send secure information to my sister:

<snip>

I like the complicated system you've set up, but can't help thinking if PGP
and email isn't the Occam's Razor way to do it...?

Garp
Jul 17 '05 #3

P: n/a
I noticed that Message-ID: <Xn*************************@24.24.2.167>
from marvin contained the following:
if i want to send secure information to my sister:


PGP is good...

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #4

P: n/a
Geoff Berrow <bl******@ckdog.co.uk> wrote in
news:8c********************************@4ax.com:
I noticed that Message-ID: <Xn*************************@24.24.2.167>
from marvin contained the following:
if i want to send secure information to my sister:


PGP is good...


occam's razor and pgp the simple existing way.
right. i like how pgp integrates with email clients now.

thanks geoff and garf,
marvin
Jul 17 '05 #5

P: n/a

"marvin" <no@swen.me> wrote in message
news:Xn**************************@24.24.2.165...
Geoff Berrow <bl******@ckdog.co.uk> wrote in
news:8c********************************@4ax.com:
I noticed that Message-ID: <Xn*************************@24.24.2.167>
from marvin contained the following:
if i want to send secure information to my sister:


PGP is good...


occam's razor and pgp the simple existing way.
right. i like how pgp integrates with email clients now.

thanks geoff and garf,
marvin


It's only data, system() PGP and get the output, MIME it up and send it.
It's not a builtin, but neither is traceroute, and you can do that this way
too.

Garp
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.