aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTad Fisher <tadfisher@gmail.com>2017-03-20 10:59:42 -0700
committerGitHub <noreply@github.com>2017-03-20 10:59:42 -0700
commitb6b23de6f787c3fc244484f613f84ffa6e3cb201 (patch)
tree65f884da2840a54122c6ad09701d4f6a845139e2 /README.md
parent310322fdeee57330e92afdf0810ac5200163d08d (diff)
parent4cc027a139396742983405782ab70a766dcaffb0 (diff)
Merge pull request #20 from tadfisher/default-passname
Generate default passname from URI label; remove url param
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 15 insertions, 5 deletions
diff --git a/README.md b/README.md
index 439f62e..1666759 100644
--- a/README.md
+++ b/README.md
@@ -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