php 7.3 password crypt database code example
Example 1: php hash password
/* User's password. */
$password = 'my secret password';
/* Secure password hash. */
$hash = password_hash($password, PASSWORD_DEFAULT);
Example 2: password_hash
<?php
/**
* For the VAST majority of use-cases, let password_hash generate the salt randomly for you.
*/
$password = 'idkWhatToUse';
$hashedPassword= password_hash($password, PASSWORD_DEFAULT);
?>