使用urlhelper加密mvc中的所有url [英] Encrypt all url in mvc with urlhelper

查看:95
本文介绍了使用urlhelper加密mvc中的所有url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在mvc项目中加密网址

我想不要改变项目代码我认为在mvc中重写urlhelpr.action

并将我的helprurl绑定在mvc helper中(在我的helprurl加密和controlecfactory解密url中)

i找不到这个方法

帮帮我

解决方案

您可以尝试使用WebSecurity中继承自WebMatrix的各种算法,如MD5,SHA。 Sha将所有您想要的输入转换为#字符。


试试这个



http://haacked.com/archive/2010/02/21/manipulating-action-method-parameters.aspx / [ ^ ]

Hi
I want encrypt url in mvc project
and I want not change project code i think that override urlhelpr.action that in mvc
and bind my helprurl in mvc helper (in my helprurl encrypt and controlecfactory decrypt url)
i can not find method for this
help me

解决方案

You can try with various algorithms like "MD5", "SHA" in WebSecurity which is inherited from WebMatrix. Sha converts all your desired inputs into "#" characters only.


try this

http://haacked.com/archive/2010/02/21/manipulating-action-method-parameters.aspx/[^]


这篇关于使用urlhelper加密mvc中的所有url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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