I am hashing my password with this method:
public static function make($string, $salt = ‘’) {
return hash(‘sha256’, $string . $salt);
}
I’m checking it with that one:
if($this->data()->password === Hash::make($password)) {
echo ‘Ok’;
} else {
echo Hash::make($password) . ‘
’;
echo $this->data()->password;
}
while echo out those, I receive different results. any solutions for that?