i am trying to encrypt my url id from asp.net
razor
In my view I have the following @Html.ActionLink
:
@Html.ActionLink(" ","index", "Home", new { id = Server.UrlEncode(item.ID.ToString()) }, new { @class = "fas fa-eye", @title = "Ver Detalle" })
With that I get the link as follows:
http://localhost:62201/Home/index/1
And the idea is to hide or encrypt the id for "more security", something like this:
http://localhost:62201/Home/index/unrecognizable_id
And then this is decoded in my controller
I appreciate your help in advance.