totp/index.html
2024-04-13 17:35:20 -04:00

81 lines
3.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<link rel="icon" type="image/svg+xml" href="/vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>TOTP.lol — A TOTP Code Generator for Developers</title>
</head>
<body>
<nav class="navbar navbar-expand-lg">
<div class="container">
<a class="navbar-brand" href="#">TOTP.lol</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-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 me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="#what-is-this">What is this?</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
</ul>
</div>
</div>
</nav>
<main class="container">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div class="jumbotron">
<p class="lead">This is a code generator for the Time-based One Time Password (TOTP) algorithm.</p>
<hr>
<div id="root"></div>
</div>
</main>
<div class="container totp-about">
<div class="card">
<div class="card-body">
<h3 class="card-title" id="what-is-this">What is this?</h3>
<p class="card-text">This is a code generator for the <a
href="https://en.wikipedia.org/wiki/Time-based_One_Time_Password"><em>Time-based One Time Password</em>
(TOTP)</a> algorthm. It's intended for developers of web applications with TOTP support to quickly generate
codes for testing purposes. It's <strong>not</strong> a general purpose authenticator app.
</p>
<p class="card-text">What this tool can do:</p>
<ul class="card-text">
<li>Quickly generate TOTP codes;</li>
<li>View codes for past and future time-windows; and</li>
<li>Fiddle with various TOTP paramters.</li>
</ul>
<p class="card-text">What this tool <strong>can't</strong> do:</p>
<ul class="card-text">
<li>Store your TOTP secrets;</li>
<li>Act as your general purpose authenticator app; and</li>
<li>Scan TOTP QR codes.</li>
</ul>
</div>
</div>
<div class="card">
<div class="card-body">
<h3 class="card-title" id="what-is-this">How do I use this tool?</h3>
<p class="card-text">To start, simply type or paste in the TOTP secret key. This should be in the standard base32
format. This will generate 6-digit TOTP codes that update every 30 seconds using the SHA-1 algorithm that's used
by default in all major authenticator apps.
</p>
<p class="card-text">You can press "show advanced settings" to adjust the TOTP parameters to use non-default
values.
</p>
<p class="card-text">The generated codes are displayed in chronological order. The current code is shown in large
text. The codes above are past codes, and the codes below are future codes.</p>
</div>
</div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>