From 5ae1761acadfdff34dda1640465f8272da0bea89 Mon Sep 17 00:00:00 2001 From: WfKe9vLwSvv7rN <96372288+WfKe9vLwSvv7rN@users.noreply.github.com> Date: Thu, 25 Aug 2022 20:35:09 -0700 Subject: [PATCH] Fix TOTP duration (#57) --- .../knowledge/Multi-factor Authentication.md | 2 +- layouts/shortcodes/time.html | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 layouts/shortcodes/time.html diff --git a/content/knowledge/Multi-factor Authentication.md b/content/knowledge/Multi-factor Authentication.md index 0dabfaf..9841643 100644 --- a/content/knowledge/Multi-factor Authentication.md +++ b/content/knowledge/Multi-factor Authentication.md @@ -31,7 +31,7 @@ The time-limited code is then derived from the shared secret and the current tim If you have a [Yubikey](https://www.yubico.com/), you should store the "shared secrets" on the key itself using the [Yubico Authenticator](https://www.yubico.com/products/yubico-authenticator/) app. After the initial setup, the Yubico Authenticator will only expose the 6 digit code to the machine it is running on, but not the shared secret. Additional security can be set up by requiring touch confirmation, protecting digit codes not in used from a compromised operating system. -Unlike [WebAuthn](#fido2-fast-identity-online), TOTP offers no protection against [phishing](https://en.wikipedia.org/wiki/Phishing) or reuse attacks. If an adversary obtains a valid code from you, they may use it as many times as they like until it expires (generally 60 seconds + grace period). +Unlike [WebAuthn](#fido2-fast-identity-online), TOTP offers no protection against [phishing](https://en.wikipedia.org/wiki/Phishing) or reuse attacks. If an adversary obtains a valid code from you, they may use it as many times as they like until it expires (generally {{< time "PT30S" >}}30 seconds + grace period{{< /time >}}). Despite its short comings, we consider TOTP better and safer than Push Confirmations. diff --git a/layouts/shortcodes/time.html b/layouts/shortcodes/time.html new file mode 100644 index 0000000..073d20f --- /dev/null +++ b/layouts/shortcodes/time.html @@ -0,0 +1,54 @@ +{{/* + + HTML date/time element