summaryrefslogtreecommitdiff
path: root/bin/gauth
blob: 169fd3b5a340546e38bd2767e24db9adbc48cfe6 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# Use backup from andOTP
#gpg -qd ~/.otp_accounts.json.gpg 2>/dev/null |
cat ~/.otp_accounts.json |
jq -r '.[] | "\(.label) \(.secret)"' |
while read -r l s; do
	echo "$l $(oathtool --totp -b "$s")"
done | column -t