A simple web-app to let users generate bcrypt and SHA512-crypt hashes for their accounts https://phss.sbruder.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.0 KiB

<!DOCTYPE html>
<html lang="en">
<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">
<title>Password Hash Self-Service</title>
<link rel="stylesheet" href="style.css">
<link rel="preload" href="backend/pkg/password_hash_self_service_backend.js" as="script" crossOrigin="anonymous">
<div class="container">
<h1>Password Hash Self-Service</h1>
<form id="hash-setup" autocomplete="off">
<label for="password">
<input name="password" type="password"></input><br>
<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>
<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 for="sha512crypt-rounds">
SHA512-crypt rounds
<input name="sha512crypt-rounds" type="number" value="100000" min="1000" max="999999999"></input><br>
<button type="button" id="generate">Generate</button>
<div id="hash-container"><span id="hash"></span></div>
The hash is calculated in your browser
and never leaves your device.
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>).
<script type="module" src="app.js"></script>