I'm trying to compare shadow password with php cli but not work ! i use this function so i can create password like shadow
function shadow ($input){
for ($n = 0; $n < 9; $n++){
$s .= chr(rand(64,126));
}
$seed = "$1$".$s."$";
$return = crypt($input,$seed);
return $return;
}
when i replace the result in shadow it's work with the password but it's have different character how i can compare it .
thanks