<?php
/**
 * Generate Password Hash
 * Run this file once to get the correct bcrypt hash
 */

$password = 'AntorNusrat@@13';
$hash = password_hash($password, PASSWORD_BCRYPT, ['cost' => 12]);

echo "Password: " . $password . "\n";
echo "Bcrypt Hash: " . $hash . "\n\n";

echo "Copy the hash above and use it in your database.\n\n";

echo "SQL UPDATE command:\n";
echo "UPDATE admins SET password = '$hash' WHERE email = 'xantuf@gmail.com';\n";
?>
