Load a Password Store into a KeePass database
Find a file
2024-07-25 11:48:17 +02:00
pass2keepass.py Change password prompt to make it clear we are creating a new db 2024-07-25 11:48:17 +02:00
README.md Add README 2024-07-25 11:29:54 +02:00
requirements.txt Start pass2keepass script 2024-07-25 09:09:25 +02:00

pass2keepass

Load a Password Store into a KeePass database.

This script is intended to synchronize a KeePass database with a Password Store. The KeePass will be dropped at replaced with a new database holding the contents of the Password Store.

Getting started

$ ./pass2keepass.py -v path_to_database.kdbx

The Password Store is found at $PASSWORD_STORE_DIR if set, otherwise defaults to ~/.password-store.

$ PASSWORD_STORE_DIR=/some/other/path ./pass2keepass.py -v path_to_database.kdbx

Requirements

The script uses gnupg to decrypt the Pass entries and pykeepass to manage the KeePass database. To install these python libs:

  • Using pip in a virtual environment:
pip install -r requirements.txt
  • On Archlinux:
pacman -S python-gnupg python-pykeepass
  • On Debian:
apt install python3-gnupg python3-pykeepass