1
0
mirror of https://github.com/Luzifer/password.git synced 2024-09-19 18:32:57 +00:00
password/frontend/index.html
Knut Ahlers 2f3688a0da
[#6] Add support for xkcd separator to CLI / WebUI
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-01 13:29:08 +01:00

121 lines
4.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Secure Password</title>
<!-- Load app script early to prevent blank HTML without styling -->
<script src="assets/bundle.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Secure Password</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="https://github.com/Luzifer/password#via-api">API Documentation</a>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item">
<button type="button" class="btn btn-default navbar-btn" data-toggle="modal" data-target="#settingsModal">
<i class="fas fa-cog" aria-hidden="true"></i> Settings
</button>
</li>
</ul>
</div>
</nav>
<div class="container mt-4">
<div class="row justify-content-md-center">
<div class="col-xs-12 col-sm-8 col-md-6">
<div class="jumbotron">
<p class="lead center">
I will generate a new secure password every 30 seconds. Just click the password to keep the current one.
</p>
</div>
<div class="card mb-3">
<div class="card-header">
Your password
</div>
<div class="card-body">
<div class="form-group">
<input class="form-control center" id="focusedInput" type="text" value="...">
</div>
</div>
<div class="card-footer">
<div class="progress">
<div class="progress-bar" style="width: 100%;"></div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
FAQ
</div>
<div class="card-body">
<ul>
<li><strong>Do you store my password?</strong><br>
You decide which one to take and we will not store any of the generated passwords. That way you can be sure only you know which password you chose.
</li>
<li><strong>How secure are these passwords?</strong><br>
All passwords are checked against a set of rules to ensure they does not contain patterns which would make it easy for programs to guess the password.
</li>
<li><strong>Can I read the source code?</strong><br>
Of course you can. It's published on <a href="https://github.com/Luzifer/password">GitHub</a> together with a test suite to ensure the passwords are safe.
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="modal" id="settingsModal" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Settings</h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="passwordLengthOption" class="control-label">Password length:</label>
<input type="number" class="form-control" value="20" id="passwordLengthOption">
</div>
<div class="form-group">
<label>
<input type="checkbox" id="useSpecialOption"> Use special characters
</label>
</div>
<div class="form-group">
<label>
<input type="checkbox" id="useXKCDOption"> Use <a href="https://xkcd.com/936/" target="_blank">XKCD style passwords</a>
</label>
</div>
<div class="form-group">
<label for="xkcdSeparator" class="control-label">Separator for XKCD passwords:</label>
<input type="text" class="form-control" value="" placeholder="Optional, could be '-' or any other separator" id="xkcdSeparator">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="optionSave">Save changes</button>
</div>
</div>
</div>
</div>
</body>
</html>