Last active
August 21, 2019 09:39
-
-
Save aerosol/db32d2bf67f6aec36047eea5070f6b20 to your computer and use it in GitHub Desktop.
Import andOTP data into iPhone authenticator with jq and imagemagick
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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