如何使用MD5哈希值通过Javascript保护JSP中的登录密码? [英] How to Use MD5 Hash for securing Login passwords in JSP with Javascript?
问题描述
如何在客户端使用md5哈希来保护从客户端(JSP)到服务器中Servlet的密码传输?以下帖子似乎可以回答该问题,但由于代码块不完整,我无法完全理解它. http://www.techlabs4u .com/2010/03/how-to-use-salted-md5-hash-for-securing.html
How can I use md5 hashing in the client side to secure the password transmission from the client side (JSP) to a Servlet in the server? The following post seems to answer the question but I can not understand it fully as the code blocks are incomplete. http://www.techlabs4u.com/2010/03/how-to-use-salted-md5-hash-for-securing.html
推荐答案
如何在客户端使用md5哈希来保护从客户端(JSP)到服务器中Servlet的密码传输?
How can I use md5 hashing in the client side to secure the password transmission from the client side (JSP) to a Servlet in the server?
不能.
密码散列用于避免存储原始密码,以便在数据库受损时对其进行保护. (而且MD5损坏了,因此无论如何您都不应该使用它.)
Password hashing is used to avoid storing original passwords so that they are protected in the event of a database compromise. (And MD5 is broken, so you shouldn't use it for that anyway).
要确保传输密码的安全,请使用SSL(通过HTTPS).
To secure the password in transmission, use SSL (via HTTPS).
这篇关于如何使用MD5哈希值通过Javascript保护JSP中的登录密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!