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
# Export data from Bitwarden to import into KeePass 2 | |
# Logic: | |
# - list folders and items and cat them together into two objects | |
# - add the two objects into one with . | add with .items and .folders | |
# - loop on items with .items[] as $i | |
# - for each $i, loop on folders with .folders and select the right folder | |
# with that id (basically a left join) | |
# - generate the object with required fields | |
# - create a comma separated line from each object, including the header at the beginning |
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
#!/usr/bin/python | |
from __future__ import print_function | |
import base64 | |
import commands | |
import json | |
import sys | |
import uuid | |
import xmltodict |