password-hash-self-service/index.html

59 lines
2 KiB
HTML
Raw Permalink Normal View History

2021-06-23 21:23:46 +02:00
<!DOCTYPE html>
<html lang="en">
2021-06-23 21:23:46 +02:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="A simple web-app to generate bcrypt and SHA512-crypt hashes">
2021-06-23 21:23:46 +02:00
<title>Password Hash Self-Service</title>
<link rel="css" href="style.css" data-trunk>
2021-06-23 21:23:46 +02:00
</head>
<body>
<div class="container">
<h1>Password Hash Self-Service</h1>
<form id="hash-setup" autocomplete="off">
<label for="password">
Password
<input name="password" type="password"></input><br>
</label>
2021-06-23 21:23:46 +02:00
<label for="hash-type">
Hash Type
<input name="hash-type" type="radio" value="bcrypt" checked>bcrypt</input>
<input name="hash-type" type="radio" value="sha512crypt">SHA512-crypt</input><br>
</label>
2021-06-23 21:23:46 +02:00
<details>
<summary>Advanced options</summary>
<label for="bcrypt-cost">
bcrpyt cost factor
<input name="bcrypt-cost" type="number" value="12" min="4" max="31"></input><br>
</label>
<label for="sha512crypt-rounds">
SHA512-crypt rounds
<input name="sha512crypt-rounds" type="number" value="100000" min="1000" max="999999999"></input><br>
</label>
</details>
2021-06-23 21:23:46 +02:00
<button type="button" id="generate">Generate</button>
</form>
<div id="hash-container"><span id="hash"></span></div>
2022-07-16 19:13:39 +02:00
<footer>
<p>
The hash is calculated in your browser
and never leaves your device.
</p>
<p>
This application is free software, released under the <a href="https://www.gnu.org/licenses/agpl-3.0.en.html"><code>AGPLv3</code></a>
(<a href="https://git.sbruder.de/simon/password-hash-self-service">Source code</a>).
</p>
</footer>
2021-06-23 21:23:46 +02:00
</div>
<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z"/>
<script src="app.js" data-trunk></script>
2021-06-23 21:23:46 +02:00
</body>
</html>