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()and を併用したい。crypt()
md5()
crypt()
使用しようとしましmd5(crypt(string),salt);たが、mysqlにログインできません。
md5(crypt(string),salt);
一緒に使う方法を知っている人はいますか?どうもありがとう。
まず、間違った関数にソルトがあります。
md5(crypt(string,salt));
また、string と salt が変数であると仮定すると、それらの前に $ を付ける必要があります。
md5(crypt($string,$salt));