Querystring Encryption

  • Thread starter Thread starter Ryan
  • Start date Start date
R

Ryan

Hi.

I am trying to encrypt some data being passed between two
aspx pages using querystring. I have tried bith DES and
Rijndael and have run across the following problem.
After either provider encrypts the data I URL encode the
data. Once the data makes it to the next page I URL
decode the data prior to decrypting it.

The problem occurs when the original encryption includes
the + sign. The URL decode assumes this was put there by
the URL encode and replaces it with a space which causes
the decryption to fail. I have worked around this by
replacing any spaces with + prior to decryption.
However, this doesn't seem like an ideal solution as
there might be other characters that might be decoded
improperly. Has anyone found a work around for this
other than using basic Base64 encryption?

Thanks in advance for any input.
 
I saw this site during my research of this problem. I
took a look at it but I'm concerned that it is simply a
wrapper of existing crypto service providers that would
suffer from the same problem.

Thanks for the input
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top