473,406 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Scramble Information in the QueryString

What are some options for scrambling information in the QueryString.

Consider this URL for example:
SomePage.aspx?userid=15

I don't care if there is something in the querystring - I'd just prefer that
it's not obvious that a variable named [userid] is getting passed, and that
it has a value of 15.

Nov 19 '05 #1
3 1972
You can use DPAPI to encrypt it when you issue the QS and then decrypt it
when it's sent back in. Dom has some wrappers for DPAPI:

http://www.leastprivilege.com/PermaL...8-6ff79a60e43f

-Brock
DevelopMentor
http://staff.develop.com/ballen
What are some options for scrambling information in the QueryString.

Consider this URL for example:
SomePage.aspx?userid=15
I don't care if there is something in the querystring - I'd just
prefer that it's not obvious that a variable named [userid] is getting
passed, and that it has a value of 15.


Nov 19 '05 #2
You can also use uniqueidentifier as fieldtype instead of int32.
http://msdn.microsoft.com/library/de...a-nop_4pt0.asp

Arjen

"Jeremy S" <A@B.COM> schreef in bericht
news:u%****************@TK2MSFTNGP12.phx.gbl...
What are some options for scrambling information in the QueryString.

Consider this URL for example:
SomePage.aspx?userid=15

I don't care if there is something in the querystring - I'd just prefer
that it's not obvious that a variable named [userid] is getting passed,
and that it has a value of 15.

Nov 19 '05 #3
Even if you do scramble (encrypt) the URL, it could still be modified in a
harmful way by the user either deliberately or accidentally. Perhaps you
could maintain the actual UserID in session state rather than passing it
around in the querystring. Also, there are methods to include a checksum
value in the query string.

"Jeremy S" <A@B.COM> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...
What are some options for scrambling information in the QueryString.

Consider this URL for example:
SomePage.aspx?userid=15

I don't care if there is something in the querystring - I'd just prefer that it's not obvious that a variable named [userid] is getting passed, and that it has a value of 15.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Klaus Ambrass | last post by:
Hi all, I write applications for my company's intraweb, and recently we've had some eager users trying to get at some data they shouldn't. The way they did it was to look at the pages input tags...
4
by: Steve | last post by:
Hi, I am trying to do a very simple "encryption" of a text string in java script. For instance, if the user enters : steve, I want to just convert each character to its ASCII value and add 5...
6
by: Rob | last post by:
Hi, Can anyone point me in the direction of how to store information after the ? in the url in form fields. i.e. http://url/test.asp?User=Rob in Form Field UserName Many thanks,
2
by: Raja Balaji R | last post by:
Hi, Is there is way to pass data from one page to another asp.net page without using for form posting, querystring, session and application variables. Thanks & Regards Raja Balaji R
9
by: Paul | last post by:
What I am trying to do is as follows. I have a page with 3 links,that direct the user to 3 different pages when selected after login. So all link selections will first direct the user to a login...
12
by: Alex | last post by:
I have a question about determining if one QueryString keys exists. The idea is, if this key exists, than its presence is enough to indicate that its value is true. For example ... ...
3
by: hugo.flores | last post by:
Hello all. I want to know what would be the best way to pass information between pages in ASP.NET? Querystring, seession variables, server transfer? If possible if anyone can list...
3
by: daokfella | last post by:
I want to be able to store profile information for a user when they sign up for an account...but BEFORE they can log in. Can this be done using any of the built-in profile methods? Here's my...
3
by: pingsheng | last post by:
Dear all, I have a form with dynamically created input fields. These fields go to next page for submitting into SQL database. The thing is all fields are the same but 4 fields. So each record...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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...
0
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,...
0
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...

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.