summaryrefslogtreecommitdiff
path: root/bin/gauth
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gauth')
-rwxr-xr-xbin/gauth8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/gauth b/bin/gauth
index bf66c2a..0c11531 100755
--- a/bin/gauth
+++ b/bin/gauth
@@ -1,11 +1,9 @@
#!/bin/sh
# Use backup from andOTP
-#gpg -qd ~/otp_accounts.json.gpg.pgp |
-#gpg -qd ~/.otp_accounts.json.gpg |
#cat ~/otp_accounts.json |
gpg -qd ~/.otp.gpg |
-jq -r '.[] | "\(.label) \(.secret)"' |
-while read -r l s; do
- echo "$l $(oathtool --totp -b "$s")"
+jq -r '.[] | "\(.label) \(.secret) \(.issuer)"' |
+while read -r l s i; do
+ printf "%-32s %-10s %s\n" "$l" "$i" "$(oathtool --totp -b "$s")"
done