blob: 0c11531643fad40da1b282437acbc8d75ac28ec6 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
# Use backup from andOTP
#cat ~/otp_accounts.json |
gpg -qd ~/.otp.gpg |
jq -r '.[] | "\(.label) \(.secret) \(.issuer)"' |
while read -r l s i; do
printf "%-32s %-10s %s\n" "$l" "$i" "$(oathtool --totp -b "$s")"
done
|