473,507 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
+ 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 7025
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
2068
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
11663
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
1330
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
1925
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
1751
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
1187
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
2461
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
1847
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
2260
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
7223
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
7111
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...
0
7376
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...
0
5623
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,...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
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
760
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.