How can I encrypt a querystring in asp.net?

前端 未结 6 1184
星月不相逢
星月不相逢 2020-12-02 19:37

I need to encrypt and decrypt a querystring in ASP.NET.

The querystring might look something like this:

http://www.mysite.com/report.aspx?id=

6条回答
  •  时光取名叫无心
    2020-12-02 20:06

    I was originally going to agree with Joseph Bui on the grounds that it would be more processor efficient to use the POST method instead, web standards dictate that if the request is not changing data on the server, the GET method should be used.

    It will be much more code to encrypt the data than to just use POST.

提交回复
热议问题