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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can you encrypt querystring and then decode it?

Status
Not open for further replies.

andryuha

Programmer
May 1, 2002
2
US
Just wondering if there are any ways to encrypt the querystring values and then decode it for request.querystring()?

thanks
 
Do you have to use QueryStrings... can you post the data instead? (I am assuming the data is coming from a form) Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
yeah, i do have to use QueryString, because a user would click on a generated link (ex. mysite/page.asp?id=5).

So i was wondering if there was a way to encrypt that ?id=5 part of he querysring and then when I retrieve it with request.querystring to decode it to normal.
 
You could build a function that would do some sort of algorythm on the value of the field, and then pass it, then call a reverse to that function when you want the value back out. But that would have to be done after the Request.querystring. So essentially you would encode it, pass it as a querystring, then take it from the querystring to a local, decode it, and go from there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top