diff options
Diffstat (limited to 'bin/gauth')
| -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 |
