在发送到php页面之前,我可以在javascript中将密码转换为md5吗? [英] Can I convert password to md5 in javascript before sending to php page?

查看:68
本文介绍了在发送到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.

这篇关于在发送到php页面之前,我可以在javascript中将密码转换为md5吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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