phpmyadmin - md5()和password()之间的区别 [英] phpmyadmin - difference between md5() and password()

查看:149
本文介绍了phpmyadmin - md5()和password()之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用PHP和phpmyadmin数据库创建一个登录应用程序,并希望加密密码。

I would like to create a login application using PHP and phpmyadmin databases and want the password to be encrypted so


  1. 是还有另一种类型是md5()和password()来加密文本?

  1. is there another type than md5() and password() to encrypt text?

md5()和password()之间有什么区别?

what the difference between md5() and password()?

md5()和密码()是否更好?

what is the better betweeb md5() and password()?

谢谢,希望可以受益于其他

Thank you, hopefully can be benefit to other

*编辑
我喜欢这种方法的一种方法哈希方法:)

*edit I Prefer 1 way hash method for this one :)

推荐答案

您可以在官方文档


  1. 是的,请参阅链接文档中的列表,并详细说明。

  2. md5()使用MD5和password()使用MySQL的本机哈希,如文档中所示。

  3. 取决于您需要什么。这个问题太模糊了,但文档提供了一个提示:

  1. Yes, see the list in the linked docs, with detailed explanations.
  2. md5() uses MD5 and password() uses MySQL's native hashing, as seen in the docs.
  3. Depends on what you need it for. This question is way too vague, but the docs give a hint:


验证系统在MySQL $中使用PASSWORD()函数b $ b服务器;您不应该在自己的应用程序中使用它。对于
的目的,请考虑使用MD5()或SHA2()。

The PASSWORD() function is used by the authentication system in MySQL Server; you should not use it in your own applications. For that purpose, consider MD5() or SHA2() instead.


这篇关于phpmyadmin - md5()和password()之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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