Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在php登录认证中一起使用md5()和。crypt()
md5()
crypt()
我尝试使用md5(crypt(string),salt);但我无法登录mysql。
md5(crypt(string),salt);
有谁知道如何一起使用它们?非常感谢。
一开始你在错误的函数中使用了盐:
md5(crypt(string,salt));
此外,假设 string 和 salt 是变量,您需要在它们前面加上 $:
md5(crypt($string,$salt));