加密查询字符串包括键 [英] Encrypt Query String including keys

查看:131
本文介绍了加密查询字符串包括键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用查询字符串来传递一些值的应用程序,我发现几个关于如何在查询字符串中加密值的例子,但是问题是我的KEYS更多地询问查询字符串,然后是所有整数的值转换为字符串。



有没有办法加密ASP.NET中的整个查询字符串,包括键和键值?



如下:

  Default.aspx?value1 = 40& value2 = 30& value3 = 20 

 默认谢谢!

解决方案

网路上有很多例子。



其中一些:



如何在asp.net?



如何在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



现在你说你也喜欢加密密钥,实际上你要做的是加密他们所有的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆