summaryrefslogtreecommitdiff
path: root/bin/gauth
blob: 6c00e1ea9c9127b1a42986429f10ffcab0776e9f (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