Skip to content

Instantly share code, notes, and snippets.

@aerosol
Last active August 21, 2019 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aerosol/db32d2bf67f6aec36047eea5070f6b20 to your computer and use it in GitHub Desktop.
Save aerosol/db32d2bf67f6aec36047eea5070f6b20 to your computer and use it in GitHub Desktop.
Import andOTP data into iPhone authenticator with jq and imagemagick
jq -r '.[] | "qrencode -o- -d 300 -s 10 \"otpauth://totp/" + (.label | gsub("[- ]"; "%20")) + "?secret=" + .secret + "\" | display"' codes.txt | while read line; do
eval ${line}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment