Encrypted Password Database (EPDB) security design

How the Encrypted Password Database protects passwords: the key hierarchy, AES-256-CBC field encryption with HMAC-SHA256, multi-user RSA and smart card access, crash-safe saves, access logs, the security measures and their limits.

Release: 2026.107 (database format v2). Audience: security reviewers, administrators and anyone deciding whether to trust EPDB with their passwords. The source code is published, so everything on this page can be checked against it; the design does not depend on keeping it secret.

1. What EPDB protects, and from whom

An EPDB database is a pair of files, name.ehd (the records) and name.ehx (the index). Every record field is encrypted. The goals are:

EPDB does not protect against an attacker who controls the computer while the database is open (malware that reads the program's memory, the screen or the keyboard), against a weak password chosen for a password-only database, or against someone who already has a valid credential.

2. The key hierarchy

Each database has one random 256-bit master key. Every credential is just a way to recover that master key, and the master key is never stored in the clear.

Password or key filetyped or read from a file RSA private keyper user, with passphrase Smart card (PKCS#11)DoD CAC, PIV; PIN on the card PBKDF2-HMAC-SHA256600,000 rounds, 32-byte salt RSA-OAEP key blockone per user, in the file Master key256-bit, random Field encryption Field MAC Key check Database MAC KBKDF-HMAC-SHA256 Removing a user deletes their key block; --rekey makes a new master key and rewraps every kept user.
Figure 1. Every credential recovers the same master key; four working keys are derived from it.

3. Field encryption and integrity

Field value Random 16-byte IV AES-256-CBCfield encryption key HMAC-SHA256field MAC key Stored fieldIV | ciphertext | tag
Figure 2. Each field is encrypted with a fresh IV, then authenticated (encrypt-then-MAC).

4. Crash-safe saves and the writer lock

Writer lockone writer only 1. Changes to journalname.ehd.jnl, synced 2. Changes to .ehd/.ehxsynced 3. Journalemptied A crash in step 1 leaves the old database; a crash in step 2 is finished from the journal at the next open.
Figure 3. Every save is all or nothing.

5. Users, revocation and automation

6. Other security measures

7. Limits, stated plainly

8. FIPS 140-3

EPDB uses only algorithms approved for FIPS 140-3 (AES-256, SHA-256, HMAC, PBKDF2, KBKDF, RSA-OAEP), and the Windows builds include the OpenSSL 3.5 FIPS provider. EPDB itself is not a FIPS-validated module and does not run in a FIPS-only mode, so it should not be described as FIPS compliant or FIPS validated. Sites that require FIPS-validated cryptography should check their policy with their security office. The companion file encryption tool, fcrypt, has a FIPS mode that uses the OpenSSL FIPS provider.

9. Quantum computing

A large quantum computer, if one is built, would change which parts of today's cryptography stay safe. Where EPDB stands in release 2026.107:

10. Reporting a security issue

Report security issues privately through the contact page, not in public issue trackers. Fixes go into the next release; the README lists every release and what changed.

Encrypted Password Database, https://datareel.com/encrypted_password_database/security_design.php