'How to encrypt parameters of URL in ASP.NET MVC with Routes

I have a very specific problem, I want to encrypt and decrypt my URL parameters in ASP.net MVC.

If my current url is like this :

http:/mywebsite/controler/Action/ParameterValue1/ParameterValue2/ParameterVale3

I want to appear it on user browser as:

http:/mywebsite/controler/Action/EncryptedParameterValue1/EncryptedParameterValue2
/EncryptedParameterValue3

With the help of Routes table.



Solution 1:[1]

Use hashing to encrypt/decrypt value.

More info at http://www.codeproject.com/Articles/38796/Simple-Encrypt-and-Decrypt-Technique-and-Computing

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jonas T