简体   繁体   English

通过Webconfig在MVC中加密表单数据

[英]encrypting form data in MVC through Webconfig

is there some codes to encrypt a form data through webconfig? 是否有一些代码可以通过webconfig加密表单数据? some sort of codes or in global.asax? 某种代码还是在global.asax中? im currently developing a log in for my website and i dont want to use SSL. 我目前正在为我的网站开发一个登录,我不想使用SSL。 is there some way to solve my problem? 有什么办法可以解决我的问题?

No. The web.config file only controls how the server behaves. web.config文件仅控制服务器的行为。 Between the client and the server you need to rely on the HTTP protocol. 在客户端和服务器之间,您需要依赖HTTP协议。

This is exactly why HTTPS (ie SSL) exists. 这就是为什么存在HTTPS(即SSL)的原因。 If you need to encrypt data while it is being transferred from the client browser to your web server you must use HTTPS. 如果在将数据从客户端浏览器传输到Web服务器时需要加密数据,则必须使用HTTPS。 There are no shortcuts. 没有捷径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM