summaryrefslogtreecommitdiff
path: root/bin/gauth
blob: 575d6fcc742d74f7127ea591d8bdd153c6226479 (plain)
1
2
3
4
5
6
7
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