0
經過半天的閱讀,瞭解密碼的正確編碼方式後,我感到非常沮喪,我選擇了這樣做。不過,我不確定這是否是最好的方法。提前致謝。使用mcrypt_create_iv()和crypt()加密我的密碼
$password= "abc123";
$salt = mcrypt_create_iv(32, MCRYPT_RAND);
$this_will_be_stored_in_db= crypt($password,$salt);
echo $this_will_be_stored_in_db;
什麼是$通變量 –