save current state

This commit is contained in:
Thomas Weinhold 2025-10-03 17:19:35 +02:00
commit 64d4eeb85d
9 changed files with 116 additions and 97 deletions

17
password.php Executable file
View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<body>
<form action="password.php" method="post">
<input type="password" name="generated_password" value=""/>
<button type="submit">Generate</button>
<br>
<?php
if (isset($_POST['generated_password'])) {
$pw_hash = password_hash($_POST['generated_password'], PASSWORD_DEFAULT);
echo "Generated password: '$pw_hash'<br>";
echo "password algorithm: " . password_get_info($pw_hash)['algoName'] . "<br>";
}
?>
</form>
</body>
</html>