I need to encrypt and decrypt a querystring in ASP.NET.
The querystring might look something like this:
How do I go about encrypting the entire querystring so that it looks something like the following?
And then, of course, how to I decrypt it? What’s the best encryption to use for something like this? TripleDES?
Here is a way to do it in VB From: http://www.devcity.net/Articles/47/1/encrypt_querystring.aspx
Wrapper for the encryption code: Pass your querystring parameters into this, and change the key!!!
Encryption Code: