How to encrypt/decrypt the url in C#

后端 未结 4 1814
借酒劲吻你
借酒劲吻你 2021-01-06 12:45

I have a URL www.site-address/site-page/page1.aspx?username=deepu&password=deepu how can i change the URL to www.site-address/site-page/page1.aspx?username=232322323232&

4条回答
  •  抹茶落季
    2021-01-06 13:15

    Do you really want to do this? If you bother with usernames and passwords, presumably there is some value to the information or functionality you provide. With URL parameter passing, you leave a number of attack surfaces wide open (not least replay attacks where anyone can impersonate your users.

    What are you really trying to do, and why can't you use what's provided in ASP.NET?

提交回复
热议问题