Skip to content

Instantly share code, notes, and snippets.

@GhostOnTheFiber
GhostOnTheFiber / andotp_to_gopass_converter.py
Created July 30, 2019 11:52
Simple script to covert andotp backup to gopass otp codes.
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

Keybase proof

I hereby claim:

  • I am ghostonthefiber on github.
  • I am groot (https://keybase.io/groot) on keybase.
  • I have a public key ASDudrbYC1daRVl_NaWssbRUu860TM8c3JnpCRgGnjPSggo

To claim this, I am signing this object: