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/env python3 | |
# Convert your pass(1) password database to a Keepass 2 (.kdbx) database. | |
# Change the PASS_DIR, KP_FILE and PASSPHRASE variables | |
# Create the kdbx file beforehand. The script assumes the passphrase of your GPG key and the database password are the same. | |
# You'll need the pykeepass libraries (install with pip3) and gpg installed on your computer | |
# Make sure your pass key is in your GPG keyring, there's absolutely no checks whatsoever | |
# I've only tested this with the WSL on Windows 10, so yeah, YMMV |