From e80ec0d2a634e7ef3e75a61874a1f937ed15fc79 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Wed, 11 Mar 2020 15:32:15 +0100 Subject: update --- bin/gauth | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/gauth (limited to 'bin/gauth') 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 -- cgit v1.2.3