diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-03-11 15:32:15 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-03-11 15:32:15 +0100 |
| commit | e80ec0d2a634e7ef3e75a61874a1f937ed15fc79 (patch) | |
| tree | 8e071c1faa34b7a056865242a11094e092576823 /bin | |
| parent | 78b8a0b2a2ee520f74d0c92004ed8fa20d85f9ee (diff) | |
update
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/gauth | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/gauth b/bin/gauth new file mode 100755 index 0000000..6c00e1e --- /dev/null +++ b/bin/gauth @@ -0,0 +1,8 @@ +#!/bin/sh + +# Use backup from andOTP +gpg -qd ~/otp_accounts.json.gpg | +jq -r '.[] | "\(.label) \(.secret)"' | +while read -r l s; do + echo "$l $(oathtool --totp -b "$s")" +done |
