Send password safely using an ajax request(使用 ajax 请求安全地发送密码)
问题描述
只是想知道,是否可以通过 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?
将加密密码存储在数据库中不是解决方案,因为 ajax 发送的登录名和密码是访问数据库本身(内部应用程序)的登录名/密码.p>
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 请求安全地发送密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 ajax 请求安全地发送密码
基础教程推荐
- fetch 是否支持原生多文件上传? 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- Bokeh Div文本对齐 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
