Created
July 30, 2019 11:52
-
-
Save GhostOnTheFiber/34c3662cc775ab4e03c4a034fb28af1d to your computer and use it in GitHub Desktop.
Simple script to covert andotp backup to gopass otp codes.
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 json | |
import urllib.parse | |
with open('tokens.json') as f: | |
d = json.load(f) | |
for items in d: | |
types = items['type'] | |
secret = items['secret'] | |
label = urllib.parse.quote_plus(items['label']) | |
out = "otpauth://totp/"+label+"?secret="+secret | |
print("totp: " + out) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment