jQuery,通过Ajax发送密码? [英] jQuery,sending password via ajax?
问题描述
我有注册框,我希望用户通过ajax注册. 通过jquery ajax发送密码是否安全? 如果没有,有人可以解释如何保护密码数据吗?
I have registration box,and I want users to register via ajax. Is it safe to send password via jquery ajax? If not,can someone explain what to do to secure password data,any example?
推荐答案
仅需说明一下,没有100%安全的方法可以使用Ajax甚至普通的POST发送任何类型的数据.
Just to clarify, there is not a 100% secure method to send any kind of data with Ajax, or even a normal POST.
一种好的做法是使用SSL/TLS证书,如果您拥有良好的SSL/TLS证书,则没人可以从观察您的网络流量中嗅探出密码.
A good practice is to use SSL/TLS Certificates, if you have a good SSL/TLS certificate nobody can sniff out the password from observing your network traffic.
不幸的是,这些服务不是免费的. (*)
Unfortunately these services are not free. (*)
如果您不想为这样的事情付费,并且正在建立注册/登录,则只需使用OpenAuth或OpenID,然后让人们使用社交网络即可加入,从而避免了客户端和服务器端的许多安全步骤.
If you don't want to pay for something like that and you're building a Sign Up / Log In you can simply use OpenAuth or OpenID and let people join using Social Networks avoiding many security steps both Client and Server side.
*:按照 Ivan Venediktov 的建议,您现在可以通过遵循 LINK .
*: As suggested by Ivan Venediktov, you can now get a free SSL certificate by following this LINK.
这篇关于jQuery,通过Ajax发送密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!