473,473 Members | 2,357 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Encrypting a query string in URL

If users forget there passwords I want to send a link to them through email
so they can click on a link and go to a change password page. eBay does
this by sending you a url that looks something like,
http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want to
a send a url with ?userID=228 tacked on the end. Instead of the 228 being
in clear text I want to encrypt it somehow and then user
Request.QueryString("userID") to get the encrypted value to decrypt it.

Could someone throw me a bone.
\\
Andy
Nov 19 '05 #1
4 7021
I hope this helps
see the Imports System.Security.Cryptography name space.
thanks
kes

"Andy G" wrote:
If users forget there passwords I want to send a link to them through email
so they can click on a link and go to a change password page. eBay does
this by sending you a url that looks something like,
http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want to
a send a url with ?userID=228 tacked on the end. Instead of the 228 being
in clear text I want to encrypt it somehow and then user
Request.QueryString("userID") to get the encrypted value to decrypt it.

Could someone throw me a bone.
\\
Andy

Nov 19 '05 #2
It does help. I use that for my password hashing so I am somewhat familiar
with that name space. Which classes would I use within that namespace for
the encrypting and decrypting?

Thanks.

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
I hope this helps
see the Imports System.Security.Cryptography name space.
thanks
kes

"Andy G" wrote:
If users forget there passwords I want to send a link to them through
email
so they can click on a link and go to a change password page. eBay does
this by sending you a url that looks something like,
http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want
to
a send a url with ?userID=228 tacked on the end. Instead of the 228
being
in clear text I want to encrypt it somehow and then user
Request.QueryString("userID") to get the encrypted value to decrypt it.

Could someone throw me a bone.
\\
Andy

Nov 19 '05 #3
I looked this up in chapter 21 of ASP.NET UnLeashed. It contains a few
examples of the different methods and their relitive strengths. Symmetric
encription is what i looked at.
thanks
kes (and yes i'm new to this one too!)

"Andy G" wrote:
It does help. I use that for my password hashing so I am somewhat familiar
with that name space. Which classes would I use within that namespace for
the encrypting and decrypting?

Thanks.

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
I hope this helps
see the Imports System.Security.Cryptography name space.
thanks
kes

"Andy G" wrote:
If users forget there passwords I want to send a link to them through
email
so they can click on a link and go to a change password page. eBay does
this by sending you a url that looks something like,
http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want
to
a send a url with ?userID=228 tacked on the end. Instead of the 228
being
in clear text I want to encrypt it somehow and then user
Request.QueryString("userID") to get the encrypted value to decrypt it.

Could someone throw me a bone.
\\
Andy


Nov 19 '05 #4
Hi, take a look at this control

http://dotnetjunkies.com/WebLog/tsha.../17/32481.aspx

Cheers
Mark
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
I looked this up in chapter 21 of ASP.NET UnLeashed. It contains a few
examples of the different methods and their relitive strengths. Symmetric
encription is what i looked at.
thanks
kes (and yes i'm new to this one too!)

"Andy G" wrote:
It does help. I use that for my password hashing so I am somewhat familiar with that name space. Which classes would I use within that namespace for the encrypting and decrypting?

Thanks.

"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message news:4B**********************************@microsof t.com...
I hope this helps
see the Imports System.Security.Cryptography name space.
thanks
kes

"Andy G" wrote:

> If users forget there passwords I want to send a link to them through
> email
> so they can click on a link and go to a change password page. eBay does> this by sending you a url that looks something like,
> http://sigin.ebay.com/aw-cgi/pass/$1$69912$1XasURRhQFdYhulVSnJqt. I want> to
> a send a url with ?userID=228 tacked on the end. Instead of the 228
> being
> in clear text I want to encrypt it somehow and then user
> Request.QueryString("userID") to get the encrypted value to decrypt it.>
> Could someone throw me a bone.
> \\
> Andy
>
>
>


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
10
by: Onur Bozkurt | last post by:
I'am sending some data by the querystring. But I don't want it to be seen exactly because of security reasons. Is there a way to encrypt it and later decrypt when reading the querystring...? I...
7
by: Bob Hollness | last post by:
OK, this has me pulling my hair out. All I want to do is encrypt/decrypt strings. They may be up to 400 characters in length though. So, I assume System.Security.Cryptography is the one to use....
11
by: frizzle | last post by:
Hi there, I need an encrypting function, but haven't got a clue where to start. First a string has to be encrypted with two different encryption keys. Both output should be anything a-z / A-Z /...
3
by: Thirsty Traveler | last post by:
I hear that MD5 is not recommended for encrypting database passwords in that it can be compromised. Does anyone have a recomendation (SHA-1, etc.) on an algorithm that would be more appropriate.
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",...
5
by: Chris Dunaway | last post by:
I have an application which is installed on a network share to be run from one or more workstations. I have granted trust to the applications on the workstations and the appropriate permissions on...
2
by: Parrot | last post by:
I cannot get an answer as to why my session state no longer remains active between webpages after working for 2 years. So I want to try to pass data thru query strings in my url. I tried to use...
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.