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 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.