Skip to content

Instantly share code, notes, and snippets.

View simsor's full-sized avatar

Simon Garrelou simsor

View GitHub Profile
#!/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