From d9c681a8fbb70d40e14079e5f1a8b4aaee0b0d08 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Mon, 20 Mar 2017 09:51:27 -0700 Subject: Fill out migrating documentation --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6c0ad4d..439f62e 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Pipe an `otpauth://` URI into a passfile: $ cat totp-uri.txt | pass otp insert totp-secret ``` -Use `[zbar](http://zbar.sourceforge.net/)` to decode a QR image into a passfile: +Use [zbar](http://zbar.sourceforge.net/) to decode a QR image into a passfile: ``` $ zbarimg -q --raw qrcode.png | pass otp insert totp-secret @@ -126,9 +126,17 @@ otp_digits: 6 New format: ``` -otpauth:// +otpauth://totp/totp-secret?secret=AAAAAAAAAAAAAAAA&issuer=totp-secret ``` +Note that the following default values do not need to be specified in the URI: + +| parameter | default | +| --------- | ------- | +| algorithm | sha1 | +| period | 30 | +| digits | 6 | + ## License ``` -- cgit v1.2.3