How to encrypt/decrypt the url in C#

后端 未结 4 1812
借酒劲吻你
借酒劲吻你 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:30

    Why don't you post the values instead of using the querystring? With SSL atleast no one would see the password encrypted or otherwise. Additional passwords in URL don't provide any security. It is like scattering keys to your house all over the neighborhood and hoping that no-one will try them to open your house.

    Basically it is a flawed premise. Urls are cached in many ways so it makes sense not to put passwords in them.

    However you are not alone in putting passwords in a URL. Check this out

    http://support.microsoft.com/kb/135975

提交回复
热议问题