I am not sending any sensitive or security information in the query string. I am currently using Base64Encoding along with MD5 Hash. I want to shorten my url as far as possible.
For Eg.:
I am not sending any sensitive or security information in the query string. I am currently using Base64Encoding along with MD5 Hash. I want to shorten my url as far as possible.
For Eg.:
If the data is not sensitive, you shouldn't be encrypting it, in particular, not if you want to save space. Encryption will normally only make the string longer.
This is also true to most encodings.
You may want to compress the string, using Zip of 7z, which, depending on the size of the string and the variability in it, may give you good results. You can URL encode the resulting byte[]
.
You will need to test the different options and see what gives you the best results (though simply sending the string as is may be your best option).
if you don't mind depending on another system, try tinyurl.
http://tinyurl.com/api-create.php?url=http://example.com?Data=blahblah