473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

encrypting and cookies

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
5 3019
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

"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
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
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: steve | last post by:
Hi, I know there are a few free and paid php source code encryption scripts around. Has anyone used one, and any feedback? I am interested in encrypting source that is placed on a remote host....
4
by: Brian Burgess | last post by:
Hi all, Anyone know of any special issues with storing cookies with ASP? I'm trying this with two browsers: One is IE 6.0 with cookies set to 'prompt'. This has been working properly as any...
3
by: Piotr | last post by:
MS has published on its sites javascript encoder, which enables "encrypting" javascript code. It allows hiding js code from being seen as a text file. There is a decoder for it, available in the...
6
by: Dayne | last post by:
Guys, I am writing a database application(vb.net , sql server) and is presently storing the connection settings in a xml file...not very secure though. What is a safer method in a dynamic...
6
by: Mark | last post by:
Hi... I've come across some weird bug with Response.Cookies. Or maybe it will be called "by design" but for the life of me I can't figure out what purpose it would serve. If you're setting a...
7
by: Richard L Rosenheim | last post by:
Anyone care to express their two cents over pros and cons of encrypting the data being transmitted (within the SOAP package) versus just utilizing a HTTPS connection? Richard Rosenheim
0
by: Chris Newby | last post by:
I'm looking for a way to transparently encrypt cookie data using Asp.Net 1.1. Ideally, developers could still do things like: HttpCookie cookie = new HttpCookie( "clearTextKey",...
2
by: Amar | last post by:
Hi All, I want to insert my password into the mysql database by encrypting it so that I can also retrieve the password. Before I was using sha1() for encrypting password,but it is an one way...
2
by: SeeSharp Bint | last post by:
Visual Studio 2005, dotnet, c#. Microsoft SQL Server. Windows XP forms application. Temporarily, for my database application, I have been storing the various elements of database connection...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.