This commit is contained in:
2025-05-15 19:32:35 -06:00
parent 6471998a46
commit 69c13606df
2 changed files with 33 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
$code = "1111";
$salt = "354rgf4efg45tg45g45tg45tg";
$argon2id_options = [
'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST,
'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST,
'threads' => PASSWORD_ARGON2_DEFAULT_THREADS
];
$passHash = password_hash($code, PASSWORD_ARGON2ID, $argon2id_options);
echo password_verify($code, $passHash)
?>