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

# Use backup from andOTP
# 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