在发送到php页面之前,我可以在javascript中将密码转换为md5吗?
问题描述:
我可以使用javascript 将输入到表单中的密码转换为md5哈希使用javascript将其发送到我的php验证页面吗?
Can I convert a password entered into a form to md5 hash using javascript before sending it to my php validation page using javascript?
如果是,怎么做?
或者有更简单的方法吗?
Or is there an easier way to do it?
谢谢。
答
无论如何你不应该这样做。
JavaScript可轻松 禁用 ,您将保存/操作普通密码。使用PHP代替。
JavaScript can easily be disabled and you will be saving/manipulating plain password. Use PHP instead for that.