Created
November 10, 2015 14:40
-
-
Save wuub/b81b929013265ff68eb4 to your computer and use it in GitHub Desktop.
hacky script to generate terminal qrcodes for totp auth's from csv file
This file contains 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
import pyqrcode | |
import csv | |
template = "otpauth://totp/{name}?secret={secret}" | |
with open("keys.csv") as f: | |
for k in csv.DictReader(f): | |
qr = pyqrcode.create(template.format(secret=k['secret'], name=k['email'])) | |
print(k['email']) | |
print(qr.terminal(quiet_zone=1)) | |
raw_input("next>>> ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment