Skip to content

Instantly share code, notes, and snippets.

@Herjan
Herjan / lp_aegis_convert.py
Last active August 23, 2023 13:18 — forked from tghw/lp_aegis_convert.md
Convert LastPass Authenticator JSON export to Aegis. This does not access your LastPass account or interact with any external resources for security. Please remember to delete your export files after you have imported them to Aegis as they could be used to retrieve your tokens.
import json
import argparse
from pathlib import Path
def main(path):
lp_json = Path(path)
with open(lp_json) as fd:
lp_data = json.load(fd)
ae_entries = []
ae_data = {