- Get the official bitwarden desktop app, in order to export your vault as a json file
- Open the bitwarden desktop app, and click
file > export vault
, making sure to choosejson
as the format. - Once you reenter your master password, choose to download the json export in the same file directory as this project's
main.py
, and rename the export toexport.json
. You should be left with an unencrypted json file. When you are finished, you will want to delete this file and empty your trash. - Open console, and run
main.py
by enteringpython main.py
, orpython3 main.py
, depending on your operating system. If you get aModuleNotFound
error, typepip install <name of module that was not found>
. Depending on how many items are in your vault, this process can take a considerable amount of time (sometimes minutes). - Open
output.html
in a web browser such as chrome, and print out the file, or save it as a pdf by clicking thesave as pdf
option underprinters
. - Delete the
qrCodes
folder,output.html
file, andexport.json
file when you are done, and empty your trash! If you use a utility such as google drive backup and sync, do not put these files in a folder that syncs. These files contain unencrypted sensitive data.
- Printing out the backup
- Storing as a backup on a hard drive, in case bitwarden ever goes away in the future
- Having access to your vault without needing a device
- Rewrite with Jinja templating
- TOTP 2FA QR code generation
- Folder support (colour coding, or small tab on right side to indicate folder name)
- Credit card image generation (for credit card type items, generate a picture of a credit card with the user's info on it)
- Automatic html to pdf conversion
- Mark/save where the user has printed up to, so they can only print new content
- Decrypt encrypted bitwarden json backups
- Fix inaccurate/broken progress bar
If you just want to try out the script, you can find an example export.json
and output.html
file here.