473,698 Members | 2,360 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("visi ts", $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 3040
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.alone 2> 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************ *************@2 4.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.c om:
I noticed that Message-ID: <Xn************ *************@2 4.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.c om:
I noticed that Message-ID: <Xn************ *************@2 4.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
2020
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. -- Posted using the http://www.dbForumz.com/ interface, at author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.dbForumz.com/PHP-Obfuscating-Encrypting-ftopict187987.html
4
3877
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 new site I goto seems to prompt me to store their cookie. The other is Pocket IE on Pocket PC 2002, with the cookies set to 'enabled'. My problem is that the cookies dont seem to be being written with my ASP. I dont get the prompt to store...
3
9835
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 net, freeware, srcdec14.exe. I have tested both, encrypting, decrypting, the source and the final files are identical. But what I met on a certain site is a js file, encoded I think in another way, because I cannot decrypt it using the...
6
2088
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 environment? Dayne
6
3045
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 cookie (say Response.Cookies ("TEST")) and you have a query string variable &test=x or &Test=x and you get Request.QueryString to parse the query string, the cookie that gets dropped matches the case of the query string, not what your code says. ...
7
4097
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
1193
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", "clearTextValue" ); Response.Cookies.Add( cookie ); and ...
2
1633
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 method. I want to use a function that can be decrypted . Please help me. Thanks Amar
2
2273
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 items like datasource,password,userid as plain strings in the registry. I'd now like to make these secure against people reading them. I thought of encrypting/decrypting each string when i write to the registry but I wouldnt know where to find a...
0
8678
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4621
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2333
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.