在POST Django上加密密码 [英] Encrypting passwords on POST Django

查看:113
本文介绍了在POST Django上加密密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了使用SSL之外,有没有办法在Django框架中将第一个POST上的密码加密到服务器?例如,如果我有一个表单接受用户名和密码,然后发送到另一个视图,不是密码发送到后端未加密?如果是这样,在发送到后端之前有没有办法加密密码?

解决方案

SSL是一个事实上的解决方案,但是如果由于某种原因,您不能拥有它,那么您将在某些加密帖子数据的JavaScript库中找到隐藏。而且,如果你搜索了很多,但是我不相信任何一个都可以达到最大的安全性。


aside from using SSL, is there any way to encrypt a password in the Django framework on the first POST to the server? For example, if I have a form that accepts a username and password, then send it to another view, aren't the passwords sent to the backend unencrypted? If so, is there a way to encrypt the passwords before transmitting to the backend?

解决方案

SSL is a de facto solution, but if for some reason you can't have it, then you'll find shelter in some javascript libraries that encrypt post data. And there are plenty of them if you search.. But I don't believe that any of them can achieve maximum security.

这篇关于在POST Django上加密密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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