加密包含密钥的查询字符串 [英] Encrypt Query String including keys

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

问题描述

我有一个应用程序,它使用查询字符串在页面周围传递一些值.我发现了一些关于如何加密查询字符串中的值的例子,但问题是我的 KEYS 告诉了更多关于查询字符串的信息,然后是所有转换为字符串的整数的值.

I have an 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.

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

Is there a way to encrypt the whole query string in ASP.NET including keys and key values?

类似于:

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

 Default.aspx?56sdf78fgh90sdf4564k34klog5646l

谢谢!

推荐答案

网上有很多例子.

其中一些:

如何在 asp.net 中加密查询字符串?

如何在asp.net中传递加密的查询字符串

http://www.codeproject.com/Articles/33350/Encrypting-查询字符串

http://www.keyvan.ms/how-to-encrypt-query-string-parameters-in-asp-net

http://forums.asp.net/t/989552.aspx/1

现在您说您确实也喜欢加密密钥,实际上您要做的就是将它们全部加密到 url 行,然后您只需 阅读 RawUrl 之后的内容是什么?并解密.

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天全站免登陆