Which's the best way to protect primary key on ASP.NET MVC?
- by Junior Mayhé
I'm creating a ASP.NET MVC website and I was wandering which techniques do you guys use to protect primary key on these mvc urls.
Actually ASP.NET MVC generates this syntax for its urls:
/Controller/Action/Id
Last week I was trying to encrypt it using SHA-1 Encryption, but this encrypter generates some special symbols like + (plus), / (slash), and other annoying chars which difficult the decryption.
Perhaps creating a custom encryption should solve the problem. But I wanna here from you guys, do you have some ideas to protect mvc urls?