summaryrefslogtreecommitdiff
path: root/bin/gauth
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-03-11 15:32:15 +0100
committerMarc Vertes <mvertes@free.fr>2020-03-11 15:32:15 +0100
commite80ec0d2a634e7ef3e75a61874a1f937ed15fc79 (patch)
tree8e071c1faa34b7a056865242a11094e092576823 /bin/gauth
parent78b8a0b2a2ee520f74d0c92004ed8fa20d85f9ee (diff)
update
Diffstat (limited to 'bin/gauth')
-rwxr-xr-xbin/gauth8
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