- microtime: documentation ( source)
- crypt: documentation ( source)
- password_verify: documentation ( source)
- md5: documentation ( source)
<?php
$save_passwd = crypt('abcdefg', '$6$rounds=5000$'.md5(microtime(true)).'$');
echo $save_passwd.'\n';
$encrypt = crypt('abcdefg' , $save_passwd);
echo $encrypt.'\n';
if($encrypt == $save_passwd) echo "잘되었으면좋겠네요시발~";
$p = "$6$rounds=5000$a0f2b3982ee93269$elwPV03aKLzE5/BvG374xvJ8IA4sSG/pc7YyDJ3Ud9seBBfFJaMY9kIqHwQhz9fJOJ3kQVJ6oPjp6G9T9pOCB";
if(password_verify('abcdefg', $p)){
echo "방가우ㅘ요아ㅐ";
}
?>