Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encrypt Querystring value

Status
Not open for further replies.

robertfah

Programmer
Mar 20, 2006
380
US
Is there a way to encrypt a value that I set in the querystring?

I've got a page that passes an ID to another page to display details on that ID, but I don't want the user to see the obvious ?ID=888. Is there a way to encrypt that going to the other page, then decrypt it once I receive it on that other page?

Thanks!
 
Yes, there are various methods you could use. Check out the System.Cryptography class for more info.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
you could also pass this information back and forth via session.
pros: don't need encryption.
cons: extra postbacks, page redirects and session maintaince to accomplish the same task.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top