summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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