加密查询字符串包括键 [英] Encrypt Query String including keys
问题描述
有没有办法加密ASP.NET中的整个查询字符串,包括键和键值?
如下:
Default.aspx?value1 = 40& value2 = 30& value3 = 20
到
默认谢谢!解决方案网路上有很多例子。
其中一些:
http://www.codeproject.com/Articles/33350/Encrypting-Query-Strings
http://www.keyvan.ms/how-to-encrypt-query-string-parameters-in-asp-net
http://forums.asp.net/t/989552.aspx/1
现在你说你也喜欢加密密钥,实际上你要做的是加密他们所有的url行,然后你只是读取RawUrl什么之后 ?并解密。
I have app that is using query string to pass some values around pages,I found few examples on how to encrypt values in query string, but the problem is that my KEYS tell more about query string then the values which are all integers converted to string.
Is there a way to encrypt whole query string in ASP.NET including keys and key values?
Something like:
Default.aspx?value1=40&value2=30&value3=20
to
Default.aspx?56sdf78fgh90sdf4564k34klog5646l
Thanks!
解决方案 There are many examples on web.
some of them:
How can I encrypt a querystring in asp.net?
how to pass encrypted query string in asp.net
http://www.codeproject.com/Articles/33350/Encrypting-Query-Strings
http://www.keyvan.ms/how-to-encrypt-query-string-parameters-in-asp-net
http://forums.asp.net/t/989552.aspx/1
Now you say that you do like to encrypt the keys also, actually what you have to do is to encrypt them all url line, and then you just read the RawUrl what after the ? and decrypt it.
这篇关于加密查询字符串包括键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!