summaryrefslogtreecommitdiff
path: root/bin/gauth
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2021-06-20 16:50:57 +0200
committerMarc Vertes <mvertes@free.fr>2021-06-20 16:50:57 +0200
commitc54b5ef0f166a6454522686e6a2a5c1550505eb0 (patch)
treef438edbbf48edb1e9f7df645666936771d37d8c0 /bin/gauth
parentc151c4ee62bd7b045a98dbcf3f1d6537948ba0d0 (diff)
update
Diffstat (limited to 'bin/gauth')
-rwxr-xr-xbin/gauth4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/gauth b/bin/gauth
index 575d6fc..699cd84 100755
--- a/bin/gauth
+++ b/bin/gauth
@@ -1,7 +1,9 @@
#!/bin/sh
# Use backup from andOTP
-gpg -qd ~/.otp_accounts.json.gpg |
+#gpg -qd ~/otp_accounts.json.gpg.pgp |
+#gpg -qd ~/.otp_accounts.json.gpg |
+cat ~/otp_accounts.json |
jq -r '.[] | "\(.label) \(.secret)"' |
while read -r l s; do
echo "$l $(oathtool --totp -b "$s")"