#!/bin/sh # Use backup from andOTP #gpg -qd ~/otp_accounts.json.gpg.pgp | #gpg -qd ~/.otp_accounts.json.gpg | #cat ~/otp_accounts.json | gpg -qd ~/.otp.gpg | jq -r '.[] | "\(.label) \(.secret)"' | while read -r l s; do echo "$l $(oathtool --totp -b "$s")" done