diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -31,22 +31,25 @@ More information may be found in the pass-otp(1) man page. ## Examples -Insert a TOTP token: +Prompt for an OTP token, hiding input: ``` -$ pass otp insert otpauth://totp/totp-secret?secret=AAAAAAAAAAAAAAAA totp-secret +$ pass otp insert totp-secret +Enter otpauth:// URI for totp-secret: +Retype otpauth:// URI for totp-secret: ``` -Have `pass-otp` prompt you for a token (avoids potential shell history leakage): +Prompt for an OTP token, echoing input: ``` -$ pass otp insert totp-secret +$ pass otp insert -e totp-secret +Enter otpauth:// URI for totp-secret: otpauth://totp/totp-secret?secret=AAAAAAAAAAAAAAAA&issuer=totp-secret ``` Pipe an `otpauth://` URI into a passfile: ``` -$ cat totp-uri.txt | pass otp insert totp-secret +$ cat totp-secret.txt | pass otp insert totp-secret ``` Use [zbar](http://zbar.sourceforge.net/) to decode a QR image into a passfile: @@ -89,12 +92,19 @@ $ pass otp uri -q totp-secret ## Installation +### From git + ``` git clone https://github.com/tadfisher/pass-otp cd pass-otp sudo make install ``` +### Arch Linux + +`pass-otp` is available in the +[Arch User Repository](https://aur.archlinux.org/packages/pass-otp/). + ## Requirements - `pass` 1.7.0 or later for extenstion support |