Skip to content

Instantly share code, notes, and snippets.

#!/bin/env python
"""Import keepass 1.x compatible password database into GNU pass
http://www.passwordstore.org/.
Uses the kppy (https://pypi.python.org/pypi/kppy) library to open and decode
the database. Python 2.7+ and Python 3.x compatible. Best results with Python3
for any unicode issues.
Usage: keepass2pass.py <keepass db> [--keyfile <key file if necessary>]
Based on http://git.zx2c4.com/password-store/tree/contrib/importers/keepassx2pass.py