save current state
This commit is contained in:
parent
c2c1ee7b9b
commit
64d4eeb85d
9 changed files with 116 additions and 97 deletions
17
password.php
Executable file
17
password.php
Executable 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue