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

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