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)
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
if(!empty($_POST['code'])) {
require('auth.php');
$supplied = hash();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Princess Pi's Nmaprincesspi Login!</title>
</head>
<body>
<form action="login.php" method="post">
<input type="password" name="code"> <input type="Login">
</form>
</body>
</html>