Emacs functions to interact with
the pass-otp
extension
for pass
.
It include functions to import OTP URIs from screenshots of QR codes, and to export them back to QR codes if needed. These features have been tested on OSX and Linux, YMMV.
Shares all dependencies with pass
and pass-otp
, and introduces these for SS
handling and QR code generation:
- imagemagick (--with-x11 support. Not required for Mac.)
- zbar-tools
- qrencode
Place password-store-otp.el
somewhere in your load-path
.
-
password-store-otp-code
entryReturn an OTP code/token from ENTRY.
-
password-store-otp-uri
entryReturn an OTP URI from ENTRY.
-
password-store-otp-qrcode
entry &optional typeDisplay a QR Code from ENTRY's OTP URI. An optional TYPE might be passed, this argument reflects
qrencode
command type, please refer to its man page. -
password-store-otp-code-copy
(interactive) entryCopy an OTP code/token from ENTRY to clipboard.
-
password-store-otp-uri-copy
(interactive) entryCopy an OTP URI from ENTRY to clipboard.
-
password-store-otp-insert
(interactive) entry otp-uriInsert a new ENTRY containing OTP-URI.
-
password-store-otp-append
(interactive) entry otp-uriAppend OTP-URI to an ENTRY.
-
password-store-otp-append-from-image
(interactive) entrySignals OS to take a (area) screenshot and scan the image to get an OTP URI, then appends it to ENTRY.
© 2017 Daniel Barreto
Distributed under the terms of the GNU GENERAL PUBLIC LICENSE, version 3.