Skip to content

emacs-TOTP implements Time-based One-time Passwords (TOTP) like specified in RFC 6238)

License

Notifications You must be signed in to change notification settings

juergenhoetzel/emacs-totp

Repository files navigation

emacs-TOTP implements Time-based One-time Passwords (TOTP) like specified in RFC 6238)

https://github.com/juergenhoetzel/emacs-totp/workflows/CI/badge.svg https://melpa.org/packages/totp-badge.svg

Setup

Until released on MELPA:

(add-to-list 'load-path "/path/to/emacs-totp")
(require 'totp)
;; if you want the authenticator widget
(require 'totp-widget)

Usage

The command totp-copy-pin-as-kill interactively prompts for account names. Non-existing Accounts/Secrets will be added to your configured Emacs auth-source and will be available in the completing-read history in it will be used at the next invocation.

Secret input format

totp supports reading secrets in HEX and multiple base32 variations:

Some providers use non-standard base32 encodings (interleaved whitespace and missing padding characters) like: 6BQA C4L3 O2FZ YNKR 6H7H IFFX 64GG SZZK SDEO FMV4 KVKI ASYE 65QA

Widget

(totp-widget) is self-explanatory:

totp-widget.gif

The Widget-Code is just a quick hack: Pull requests are welcome!

About

emacs-TOTP implements Time-based One-time Passwords (TOTP) like specified in RFC 6238)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published