I'm using an .ashx handler to securely download files to a client. On a certain webform page I have a link that points to my .ashx file which takes query string. In a particular instance it is encrypting a a number: 148 to this : .....ashx?q=035EeD+5BQ8=".
The debugger interperets this as .....ashx?q=035EeD+5BQ8%3d", and the string I assign this value to converts %3d
back to an equal sign but removes the + sign and replaces it with a blank. So essentially my decrypting method complains that the input string's length isn't long enough, because of the + sign being converted to white space.
Why would it do this? Is there a simple method that I can encrypt/decrypt a query string? It doesn't need to be bank vault security, but I would like to do something.