Generate Argon2i Password Hash using PHP

password_hash function

<?php

$options = [
    'memory_cost' => '65536',
    'time_cost' => 4,
    'threads' => 2,
];

$password = 'Hello';
$passwordHash = password_hash($password, PASSWORD_ARGON2I, $options);

echo $passwordHash;

Leave a Comment

Cancel reply

Your email address will not be published.