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.:
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).