I created a default username and password in mysql table with this command.
insert into users (email, password) values('admin', md5('1234'));
and then tried to verify with php;
password_verify($_POST['password'], $results['password'])
but, it is not verified.. but, if I create a username and password with
$stmt -> bindParam(':password', password_hash($_POST['password'],
PASSWORD_BCRYPT));
it can be verified..
My question:
i'd like to create default username and password with mysql command and want web-site(php) to verify it with user input.
to do this, which mysql function do I need to use for the password encryption? md5() seems not to be equal to password_hash in php..
thanks a lot