diff options
author | Tad Fisher <tad@simple.com> | 2017-03-20 10:55:45 -0700 |
---|---|---|
committer | Tad Fisher <tad@simple.com> | 2017-03-20 10:55:45 -0700 |
commit | 4cc027a139396742983405782ab70a766dcaffb0 (patch) | |
tree | 65f884da2840a54122c6ad09701d4f6a845139e2 /README.md | |
parent | 310322fdeee57330e92afdf0810ac5200163d08d (diff) |
Generate default passname from URI label; remove url param
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 |