473,545 Members | 2,113 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$1XasUR RhQFdYhulVSnJqt . 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.QuerySt ring("userID") to get the encrypted value to decrypt it.

Could someone throw me a bone.
\\
Andy
Nov 19 '05 #1
4 7032
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$1XasUR RhQFdYhulVSnJqt . 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.QuerySt ring("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.mic rosoft.com> wrote in message
news:4B******** *************** ***********@mic rosoft.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$1XasUR RhQFdYhulVSnJqt . 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.QuerySt ring("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.mic rosoft.com> wrote in message
news:4B******** *************** ***********@mic rosoft.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$1XasUR RhQFdYhulVSnJqt . 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.QuerySt ring("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.mic rosoft.com> wrote in message
news:AC******** *************** ***********@mic rosoft.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.mic rosoft.com> wrote in message news:4B******** *************** ***********@mic rosoft.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$1XasUR RhQFdYhulVSnJqt . 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.QuerySt ring("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
2072
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
10
11666
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 would be very happy with some sample code.
7
1335
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. All the examples I have found are driving me nuts. They are either way too long for something that I guess should be fairly straightforward, or...
11
1930
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 / 0-9 with a fixed length (e.g. 20 chars). (Preferably the encryption keys should pick chars from a string i give them, to prevent l's and 1's, o's...
3
1758
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
1189
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 ...
5
2463
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 the shared folder and the user's can execute the app with no problem. I do have a problem, however, after the application starts. In the...
2
1849
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 SecureString to encrypt the sensitive data but cannot figure out how to encrpyt data using this method from the documentation. Does anyone have an...
2
2267
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...
0
7468
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...
0
7808
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7423
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...
0
7757
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...
0
5972
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...
0
4945
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3443
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1884
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
1
1014
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.