v0.5-dev
This commit is contained in:
@@ -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)
|
||||||
|
?>
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user