Re: Encrypt QueryString
From: Peter Bromberg (pbromberg.nospam@yahoo.com)
Date: 06/23/02
- Next message: Justin: "Re-write of <form action=https"
- Previous message: Willy Denoyette [MVP]: "Re: No access to AD through DirectoryEntry/Searcher even when logging on"
- In reply to: David Adams: "Encrypt QueryString"
- Next in thread: David Adams: "Re: Encrypt QueryString"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Peter Bromberg" <pbromberg.nospam@yahoo.com> Date: Sat, 22 Jun 2002 22:45:51 -0400
If all you really need is basic, simple encryption to discourage "prying
eyes",
you might want to consider a simple XOR method on the querystring value(s).
Simply iterate through each character in the querystring and convert it to
the value obtained via XOR with an integer from say, 1 through 255.
The advantage of this is that it can easily be done on the client side with
VBscript or Javascript without .NET, and you can use the same function to
"decrypt" by passing in the encrypted string to the very same method XOR'ing
each character against the same integer.
Quick, fast, very few lines of code.
HTH
"David Adams" <mel1daa@hotmail.com> wrote in message
news:#ayJVdaGCHA.2584@tkmsftngp08...
> Hi all,
>
> Is there a way to easily encrypt a QueryString with .NET? I have a
datagrid
> with 30 rows of data that have a hyperlink to user information
> (userinfo.aspx?ID=1234). I would simply like to have an encryption method
> that I can use to quickly encrypt and decrypt this value with little
> overhead.
>
> Any suggestions would be appreciated!
>
> Dave
>
>
- Next message: Justin: "Re-write of <form action=https"
- Previous message: Willy Denoyette [MVP]: "Re: No access to AD through DirectoryEntry/Searcher even when logging on"
- In reply to: David Adams: "Encrypt QueryString"
- Next in thread: David Adams: "Re: Encrypt QueryString"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|