Generate bcrypt Password Hash using PHP

password_hash function

<?php

$cost = 14;

$password = 'Hello';
$passwordHash = password_hash($password, PASSWORD_BCRYPT, ['cost' => $cost]);

echo $passwordHash;

Leave a Comment

Cancel reply

Your email address will not be published.