blob: b18f73d7e29b7071e0a85f14185d4ed4dad9db9e (
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
|