password-hash-self-service/index.html
2021-06-23 21:53:47 +02:00

39 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Password Hash Self-Service</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Password Hash Self-Service</h1>
<form id="hash-setup" autocomplete="off">
<label for="password">Password</label>
<input name="password" type="password"></input><br>
<label for="hash-type">Hash Type</label>
<input name="hash-type" type="radio" value="bcrypt" checked>bcrypt</input>
<input name="hash-type" type="radio" value="sha512crypt">SHA512-crypt</input><br>
<input id="advanced-options" name="advanced" type="checkbox">Advanced options</input><br>
<div class="advanced">
<label for="bcrypt-cost">bcrpyt cost factor</label>
<input name="bcrypt-cost" type="number" value="12" min="4" max="31"></input><br>
<label for="sha512crypt-rounds">SHA512-crypt rounds</label>
<input name="sha512crypt-rounds" type="number" value="100000" min="1000" max="999999999"></input><br>
</div>
<button type="button" id="generate">Generate</button>
</form>
<div id="hash-container"><span id="hash"></span></div>
</div>
<script type="module" src="app.js"></script>
</body>
</html>