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

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