Until released on MELPA:
(add-to-list 'load-path "/path/to/emacs-totp")
(require 'totp)
;; if you want the authenticator widget
(require 'totp-widget)
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.
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
(totp-widget)
is self-explanatory:
The Widget-Code is just a quick hack: Pull requests are welcome!