如何同时使用AJAX和JQuery我加密后的数据? [英] How Do I encrypt post data while using ajax and JQuery?

查看:753
本文介绍了如何同时使用AJAX和JQuery我加密后的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

服务器端,我们可以验证用户,但我想数据的安全性时,AJAX或JQuery的发送数据。就像在客户端的人只能看到加密格式的任何调用的参数。
那么,如何做到这一点。我看到的这个网站了这种情况。

Server side we can authenticate the user but I want security of data when ajax or JQuery sends the data. Like on client side someone can only see the parameters of any call in encrypted format. So how do I do this. I have seen this scenario on this site.

修改

我们可以忽略,当谈到服务器的形式对数据进行加密。
但是ATLEAST在发送时间是必需的。
看到这个网站在 preference 的例子设置复选框的通知。
人们可以通过使用Firebug插件在Mozilla Firefox观看要求。

we can ignore to encrypt data when it comes form server. But atleast at sending time it is required. see the example on this site in your preference setting the checkboxes for notification. one can watch request by using firebug add-on in Mozilla firefox.

推荐答案

您不能。

如果浏览器(即JavaScript)的假定与价值读/工作,他们必须清楚的文字。你可能会拿出将因为JavaScript的本身固有打破任何加密/加扰方案必须能够解密/解密数据,因此任何人都机智的中等量可以访问源$ C ​​$ C就能算出它出。

If the browser (i.e. JavaScript) is supposed to read/work with the values, they have to be clear text. Any encryption/scrambling scheme you might come up with will be inherently broken since JavaScript itself must be able to decrypt/unscramble the data, and therefore anyone with a medium amount of wit can access the source code will be able to figure it out.

您可以做SSL请求到服务器的连接进行加密,第三方隐藏数据。

You can do SSL requests to encrypt the server connection, hiding the data from third parties.

这篇关于如何同时使用AJAX和JQuery我加密后的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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