发送密码使用Ajax请求安全 [英] Send password safely using an ajax request
问题描述
只是知道,是否有可能通过一个Ajax请求安全发送密码?
just to know, is it possible to send password through an Ajax request safely?
我已经调用一个Ajax请求尝试登录/传递和获取一个JSON对象有错误(如果有的话)。
I've a login box that calls an ajax request to try the login/pass and retrieve a JSON Object with errors (if any).
我应该使用一种形式的重定向呢?
Should I use a form redirection instead?
在数据库中存储加密的密码是解决不了问题,因为发送阿贾克斯的登录名和密码的登录/密码来访问数据库本身(内部应用程序)。
Store the encrypted password in the database isn't the solution because the login and password send by ajax are the login / password to access the database itself (internal application).
推荐答案
送东西不能被第三方截获的唯一方法是通过使用HTTPS而不是常规的HTTP。这种方式的所有内容服务器和客户端之间发送被强加密。
The only way to send something that can not be intercepted by a third party is by using HTTPS instead of regular HTTP. That way everything sent between the server and the client is strongly encrypted.
这篇关于发送密码使用Ajax请求安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!