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.
question from:
https://stackoverflow.com/questions/65598880/encrypt-parameters-in-html-actionlink 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…