Password hashing not working in php mysql
问题 I am trying to use password hashing using phpmysql. The issue is password_verify does not seem to work for me so far. Say, my password during registration is '123456789'. I stored it in database using password_hash('123456789', PASSWORD_BCRYPT, array('cost' => 12)); And then when I enter '123456789' in the login field, it does nothing, fails. Here is my code: <?php session_start(); include('db.php'); ?> <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">