Url Encryption/Decryption in DOT NET`

  • Thread starter Thread starter Charles
  • Start date Start date
C

Charles

Hi all...


I am working in a Web based project......

I need to encrypt and Decrypt the Querystring ..contents ....

the Encrypted Querystring should be short enough that it accomodates
with in the Address bar......

Hoe could i do this....?

Wat algorith should i implement to Encrypt and Decrypt ... to short
string.......

Anyone Please Reply.....

Its urgent....

Thanks in Advance...
Sanjay
 
You have got to question why you need to do this and look at the deisgn of
your application. The question has been asked lots of times and theres
never a really good answer to why its appropriate.

Still, as a starter I would suggest you take a look at DES encryption, as
there are javascript examples of using it, and .NET has the same algorithms
for use server side also, but there will clearly be other solutions.

Some links to help:
http://www.tero.co.uk/des/
http://support.microsoft.com/?id=307010

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
 
Do you want to encrypt? You can also set up a scheme of random bits that
identify certain conditions and send that across the wire. The token sent
will fit in the address bar and can represent any number of bits of data in
your database.

If you want a short string, you have to use an algorithm that does not add
much noise. I would aim for a small block, small key and lighter weight
algorithm. It will be less secure, of course, but you can switch keys
regularly to get around people decrypting the string.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
Back
Top