diff options
author | Niklas Hambüchen <mail@nh2.me> | 2020-08-31 16:56:23 +0200 |
---|---|---|
committer | Tad Fisher <129148+tadfisher@users.noreply.github.com> | 2020-09-12 12:51:19 -0700 |
commit | 7be39f286757dc8630f681f3696b778f4a3ec301 (patch) | |
tree | 13addf50618b78cc3c054d98d5abf6f0dad1305b | |
parent | e57acb084ee728ef9d88a3d9b63a7b34ac6faea8 (diff) | |
download | pass-otp-7be39f286757dc8630f681f3696b778f4a3ec301.tar.gz pass-otp-7be39f286757dc8630f681f3696b778f4a3ec301.zip |
README: Also describe how to use zbarcam
I find this one of the most common use cases.
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -61,12 +61,18 @@ Pipe an `otpauth://` URI into a passfile: $ pass otp insert totp-secret < totp-secret.txt ``` -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 or webcam shot into a passfile: ``` $ zbarimg -q --raw qrcode.png | pass otp insert totp-secret ``` +To use your webcam: + +``` +$ zbarcam -q --raw | pass otp insert totp-secret +``` + The same, but appending to an existing passfile: ``` |