Does KeePass database encryption depend on public-key algorithms?
If your team stores long-lived secrets in KeePass .kdbx files and needs to record whether that database is exposed to post-quantum risk, the short answer is that the database format does not depend on public-key algorithms. The KDBX specification lists AES-256 or ChaCha20 for encryption, SHA-256 and HMAC-SHA-256 for integrity and key building, and AES-KDF or Argon2 for key derivation, none of which are public-key algorithms. KeePass has published no post-quantum statement on its Security, FAQ, Trust, KDBX specification, KDBX 4 notes or news pages, as checked on 2026-12-03.
Public-key algorithms do appear elsewhere in KeePass, so the inventory should not stop at the database file. The update check version file is signed with RSA-4096 and SHA-512 since KeePass 2.34, program binaries are signed with Authenticode, and HTTPS, WebDAV or FTPS connections use TLS. These are covered on the sibling pages on where KeePass uses cryptography and on which functions depend on RSA and elliptic-curve keys, so this section does not repeat them.
Teams that must record an answer should confirm three things in their own environment: the cipher and KDF actually set on each database (the KeePass documentation names no default for either), the KeePass version in use, since the KDBX 4 notes and the Security page disagree on which Argon2 variants are supported, and whether any key file or key provider plugin in the master key is itself protected by public-key cryptography. Ask KeePass for a written statement if your assessor needs one, because the public pages do not currently provide it.
Database encryption, key derivation and key file facts by KeePass version
This table compares database ciphers, integrity checks, key derivation functions, KDBX format support and key file types for KeePass 2.x (current 2.62, dated 2026-11-04) and 1.x (1.44). Each row shows the source and the date it was checked, so you can confirm the setting in your own installation. Every row is symmetric or hash-based, not public-key, and none of the checked pages describe a post-quantum setting.
| Component | KeePass 2.x | KeePass 1.x | Source and checked date |
|---|---|---|---|
| Database ciphers | AES-256 and ChaCha20, both with 256-bit keys. Symmetric. | AES and Twofish. Symmetric. | KeePass Security; KDBX Spec. Checked 2026-12-03. |
| Integrity check | HMAC-SHA-256 over the ciphertext (encrypt-then-MAC), with a random IV on each save. Hash-based, not public-key. | Not listed as HMAC-SHA-256 on the pages checked. Confirm in the 1.x documentation. | KeePass Security. Checked 2026-12-03. |
| Master key derivation | SHA-256 builds the 256-bit master key from the password, key file, key provider and Windows DPAPI components. Hash-based. | SHA-256 and key components as described for 1.x; confirm details in the 1.x documentation. | KeePass Security; KDBX Spec. Checked 2026-12-03. |
| Key derivation function (KDF) | AES-KDF, Argon2d and Argon2id. Symmetric and hash-based. The Security page does not offer Argon2i. | AES-KDF only. Symmetric. | KeePass Security; KDBX Spec. Checked 2026-12-03. |
| Argon2id conflict | The KDBX 4 notes say only Argon2d is supported. The Security page and KDBX spec name Argon2id. Check the installed version before relying on either. | Not applicable (no Argon2 in 1.x). | KDBX 4 Notes; KeePass Security; KDBX Spec. Checked 2026-12-03. |
| KDBX format versions | KDBX 4 from KeePass 2.35, allowing Argon2. ChaCha20 as file cipher forces KDBX 4 from 2.44. | Earlier format; KDBX 4 not listed for 1.x. | KDBX 4 Notes; KDBX Spec. Checked 2026-12-03. |
| Key file types | XML (recommended, with integrity hash from format 2.0), exactly 32 bytes as a raw key, 64 hex characters, or any other file hashed with SHA-256. | Key file support as described for 1.x; confirm the accepted formats in the 1.x documentation. | KeePass Keys. Checked 2026-12-03. |
| Post-quantum setting | None listed on the Security, FAQ, KDBX spec, KDBX 4 notes or Database Settings pages. | None listed on the pages checked. | KeePass Security; KDBX Spec; KDBX 4 Notes; Database Settings. Checked 2026-12-03. |
How the KeePass master key is built from password, key file and plugin components
The KeePass master key is not a single secret. It is assembled from up to four components: a master password, a key file, a Windows user account key (2.x only) and a key provider plugin. Every component you configure for a database is required to open it, so a reviewer should record each one in the database settings and confirm which of them a user, a script or a plugin supplies. The KDBX specification describes the result as a SHA-256 hash built from the password together with the optional key file, key provider plugin and Windows DPAPI components. The KeePass Security page states that SHA-256 compresses these components into a 256-bit key. Confirm in your own environment which components each database uses, and treat a missing component as a reason the database will not open rather than as an optional setting.
The key file is where the inputs differ most, and the KeePass Keys page sets out three handling paths. An XML key file is the recommended and default format, and from format version 2.0 it carries an integrity hash. A file of exactly 32 bytes is used directly as a 256-bit key. A file containing 64 hexadecimal characters is decoded into a 256-bit key. Any other file is hashed, typically with SHA-256, to produce the key. Because a file of arbitrary content is hashed rather than parsed, the file's bytes are the secret, so its storage location and access controls matter as much as the password. Check which of the four formats each key file uses, since a hex file or a raw 32-byte file behaves differently from an arbitrary file that is only hashed.
The Windows user account key applies only to KeePass 2.x on Windows, and the key provider plugin depends on what each plugin implements. Both add inputs that are unavailable to a person who holds only the password and key file, so a recovery plan has to account for them. Plugins are loaded from the Plugins folder of the application directory, and the KeePass Plugins page warns that an attacker who can write to that folder could typically also replace KeePass.exe. Restrict write access to that directory and keep a written record of which plugins each database requires. The KeePass Security and KDBX specification sources do not describe the plugin key provider in more detail, so confirm its behavior with the plugin's own documentation before relying on it.
How the database settings differ by KeePass version and deployment
KeePass 1.x databases use AES or Twofish for encryption and AES-KDF for key derivation. The 1.x line is older, and the KeePass download page still lists KeePass 1.44 alongside the 2.x release, so some teams still open files created this way. Record the cipher and KDF from the database settings for each file you find, rather than assuming the version.
- Cipher: Record whether AES or Twofish is selected for each database.
- Key derivation: Record AES-KDF and its iteration count, which the 1 Second Delay button sets on the local machine.
- Argon2 absence: Argon2d and Argon2id are available only in 2.x, so a 1.x database cannot use them.
- Version in use: Record the exact 1.x build that opens the file, since upgrade or migration decisions depend on it.
Confirm which 1.x files still exist in your estate and which application opens them before planning any change to their settings.
KDBX 3 databases are created by KeePass 2.x and use AES-KDF for key derivation. The file format predates KDBX 4, so Argon2 is not available for these files. Each database records its own settings, so an inventory should capture them per file rather than per application.
- Cipher: Record AES-256 or ChaCha20 as the file encryption algorithm, since both are built-in options in 2.x.
- Key derivation: Record AES-KDF and the transform rounds, which the 1 Second Delay button tunes on the machine where the setting is chosen.
- Format version: Record KDBX 3 as the format, since ChaCha20 selection forces KDBX 4 from KeePass 2.44 onward.
- Integrity: Note that KeePass checks integrity with HMAC-SHA-256 over the ciphertext and writes a random initialization vector on each save.
Confirm the format version of each file before assuming a stronger key derivation function is in use.
KDBX 4 databases, introduced with KeePass 2.35, allow Argon2 for master key transformation. Selecting ChaCha20 as the file encryption algorithm forces this format from KeePass 2.44 onward. The key derivation choice is the setting to record most carefully, because the documents disagree on which Argon2 variants are supported.
- Key derivation: Record Argon2d or Argon2id, as the Security page and the KDBX specification name both, while the KDBX 4 notes page states only Argon2d is supported.
- Argon2 parameters: Record the version (KeePass defaults to 1.3), the 256-bit tag length, the iteration count and the 32-byte salt where the specification recommends it.
- Inner stream cipher: Record ChaCha20 for protected fields, which is the default in KDBX 4.
- Iterations: The Security page recommends not going below 2 Argon2 iterations, so flag any database set lower.
Before relying on either document, check the KeePass version you run, since the conflicting KDBX 4 notes page may not match the current release.
A shared or synced database has a second set of concerns in the sync protocol, separate from the database format. Local files, WebDAV, SFTP and FTPS each carry the file in a different way, and the choice of protocol is recorded apart from the cipher and KDF. The Synchronization page does not discuss encryption in transit or server authentication for any protocol, so those points must be checked with your own configuration.
- Protocol: Record whether the database uses a local or network file, FTP, HTTP, HTTPS, WebDAV, or, through the IOProtocolExt plugin, SCP, SFTP or FTPS.
- TLS version: On Mono, record the runtime, since TLS 1.2 support needs Mono 4.8.0 or higher, or .NET Framework 4.5 or higher.
- Plugin: Record the IOProtocolExt plugin version where SCP, SFTP or FTPS is used.
- Server authentication: Record how the server is authenticated, which the KeePass documentation does not describe.
Confirm transport security with the server operator, because the sync protocol is outside what the database settings page records.
What a team should check in its .kdbx databases next
This sequence gives a team a dated record of which KeePass version each machine runs, how each database is encrypted and derived, how its keys and plugins are handled, and whether vendor statements on post-quantum support have been checked. The output is an inventory a security or vendor-risk lead can review and repeat.
Identify the KeePass version on each machine
The engineer responsible for each workstation or server opens KeePass and reads the version from the About dialog, or checks the installed package with the software inventory tool the team already uses. The current main release on the KeePass download page is 2.62, which the page recommends with the text "If in doubt, use KeePass 2.x." Record the exact build number for each machine, and note any machine still on KeePass 1.x or an older 2.x build. The step is complete when every machine in scope has a recorded version in the inventory, with the check date beside it.
Record each database's format, cipher and KDF
For each .kdbx file, the database owner opens the file and reads the format version, file encryption algorithm and key derivation function from the database settings dialog. KeePass 2.x supports AES and ChaCha20 with 256-bit keys, and KDBX 4 databases can use Argon2 for key derivation, while older databases use AES-KDF. Record these three values per database, along with the file path and owning team. The step is complete when the inventory lists the format version, cipher and KDF for every database, so a reviewer can see which files use the Argon2 path and which do not.
Confirm Argon2 iteration counts meet the minimum
For each database that uses Argon2, the owner reads the iteration count in the database settings and compares it with the minimum of 2 iterations that the KeePass Security page recommends. Where the count is below 2, the owner raises it in the same settings dialog and saves the database, then records the new value. KeePass offers a "1 Second Delay" button that sets the iteration count for a 1 second load or save delay on the current computer, but the Security page does not treat that delay as a security target. The step is complete when every Argon2 database is recorded at or above 2 iterations, with any changes logged.
Inventory key files and their types
The owner of each database lists every key file in use and the component it belongs to, then checks the file's type. KeePass recognizes XML key files, which are recommended and include an integrity hash from format version 2.0, files of exactly 32 bytes used directly as a 256-bit key, and files holding 64 hexadecimal characters decoded into a 256-bit key. Any other file is hashed, typically with SHA-256, to produce the key. Note where each key file is stored and who can read it. The step is complete when each key file has a recorded type, location and owner, and any database using a file of an unexpected type is flagged for review.
Confirm plugin folder write access is restricted
The administrator of each machine checks the write permissions on the KeePass Plugins folder in the application directory and confirms that only the accounts that install software can change its contents. The KeePass Plugins page warns that an attacker who can write to that folder could typically also replace KeePass.exe, and it recommends restricting write access. Record the permissions observed, the account that holds write access, and any plugins that are installed. The step is complete when the folder's write restriction is recorded for each machine and any broader access is corrected or documented as an exception.
Record the check date and vendor statement result
The security or vendor-risk lead gathers the version, database, key file and plugin records and dates the inventory. The lead then checks the KeePass Security, FAQ and Trust pages and the news page for any statement on post-quantum cryptography. As of 2026-12-03, none of those pages mentions quantum computing or post-quantum algorithms, and the news page contains no roadmap statement on that topic. Record the result as the observed state on the date of the check, quoting the page names. The step is complete when the inventory carries a single check date, the vendor statement result for that date, and the name of the person who made the check, ready to be reviewed again on a set schedule.
What KeePass has not published about post-quantum database protection
On the pages checked on 2026-12-03, KeePass has not published a post-quantum position for its database format, key derivation or update signing. The cards below list each gap, what to ask the project, and where to confirm the answer before you record a finding.
No post-quantum algorithm list
The Security, FAQ, KDBX specification, KDBX 4 notes and Database Settings pages checked on 2026-12-03 do not name ML-KEM, ML-DSA or SLH-DSA. Database encryption still rests on AES-256 and ChaCha20, and integrity on HMAC-SHA-256, none of which the project has described as post-quantum. Ask the project whether it plans to adopt any of these standards for the database format or for signing. Confirm the answer in the KeePass news and release notes for the version you run, since a later page may carry the statement.
- Latest 2.x release
- 2.62
No setting to enable post-quantum options
The Database Settings page names no cipher or KDF option that uses a post-quantum algorithm. Current choices are AES-256 or ChaCha20 for encryption, and AES-KDF, Argon2d or Argon2id for key derivation. Ask the project whether any future edition will add a setting for these options. Check the Database Settings page and the options dialog in your installed version, because a setting added after 2026-12-03 would not appear on the checked page.
Database SettingsNo roadmap statement in the news
The KeePass news page, checked on 2026-12-03, lists release headlines and dates. It contains no roadmap entry on post-quantum cryptography, FIPS or CNSA 2.0. Ask the project for a written statement on whether post-quantum work is planned and on what timeline. Record the answer with the date it was given, since the news page lists only releases and a statement may appear in a forum or project mailing list instead.
- Latest release date
- 2026-11-04
Argon2id or Argon2d: conflicting pages
The KeePass Security page and the KDBX specification name Argon2id as a KDF option. The KDBX 4 notes page, which describes KeePass 2.35 onward, says only Argon2d is supported. Argon2d is the variant the Security page recommends for resistance to GPU and ASIC attacks. Before recording a finding, open the KDF dropdown in the version you run and confirm which variants it offers. Ask the project to correct the page that does not match the code, and note the version you tested.
KDBX 4 notesNo statement on symmetric key sizes
KeePass uses 256-bit keys for AES and ChaCha20 and a 256-bit tag for Argon2. None of the checked pages says whether the project considers these sizes adequate against a quantum adversary. Ask the project for its position on symmetric key sizes in the database format and whether it intends to change them. Record the answer as a vendor statement, not as a conclusion you draw from the key lengths alone.
KDBX specificationQuestions teams ask about KeePass database encryption and post-quantum readiness
Is a KeePass .kdbx file quantum safe?
KeePass has not published a statement that a .kdbx file is quantum safe, and its documentation does not mention post-quantum cryptography. What the documentation does support is a description of the database format: the KDBX specification lists two built-in cipher options, AES-256 (NIST FIPS 197, CBC mode, PKCS #7 padding) and ChaCha20 (RFC 8439), both with 256-bit keys. The master key is built from a SHA-256 hash of the password plus any key file, key provider plugin or Windows DPAPI component, and the integrity check uses HMAC-SHA-256 over the ciphertext. Symmetric ciphers and hashes of this kind are not the same as public-key algorithms, and the specification does not mention public-key cryptography in the database format itself. Confirm the database's cipher, key derivation function and key components in the database settings dialog, and treat the file as a symmetric-key artifact whose post-quantum status depends on the KeePass version and the settings in use, not on a vendor claim.
Which KeePass version should teams use today?
The KeePass download page, checked on 2026-12-03, lists KeePass 2.62 as the main release and says "If in doubt, use KeePass 2.x." The news page dates 2.62 to 2026-11-04 and lists it as the latest 2.x release. The same download page also lists KeePass 1.44, but 1.x offers fewer options: it supports AES and Twofish for encryption and AES-KDF for key derivation, and it does not offer Argon2. Teams that need Argon2 key derivation or ChaCha20 database encryption need KeePass 2.x, and ChaCha20 database encryption forces the KDBX 4 format since KeePass 2.44. Before upgrading an existing database, test that the file opens in the new version and confirm that any plugins and sync targets still work. Verify the version number on the download page at the time of your review, because the page is updated.
Should a team choose ChaCha20 or AES-256 for the database?
The KeePass 2.x documentation lists both AES (Rijndael) and ChaCha20 as supported database encryption algorithms, each with 256-bit keys. The facts supplied for this page do not rank them for post-quantum use, and KeePass has published no statement recommending one over the other on that basis. The choice has practical consequences, though. ChaCha20 requires the KDBX 4 format, so a database saved with it cannot be opened by older KeePass builds that lack KDBX 4 support, and the KDBX 4 notes describe KeePass 2.35 as the release that introduced that format. AES-256 is the option defined by NIST FIPS 197 and is the one most review checklists name by standard, which can simplify evidence for an assessor. Select the cipher that your compatibility and assessor requirements support, record the choice, and ask the vendor for any post-quantum position on either cipher in writing.
What breaks if a key file is lost?
If a database uses a key file as one of its master key components, the key file is required to open the database, and KeePass requires all components in use to open it. The KeePass key documentation says a master key can combine a master password, a key file, a Windows user account key (2.x only) and a key provider plugin, and all components in use are required. Losing the key file therefore locks the database even if the master password is known. Key files can be XML (the recommended and default type, with an integrity hash from format version 2.0), exactly 32 bytes used directly as a 256-bit key, or 64 hexadecimal characters, and any other file is hashed to produce the key. Keep a tested, separately stored backup of the key file and the database, and check the recovery procedure before relying on it, since no recovery route is documented in the supplied facts.
Can our team review the database settings itself?
Yes. KeePass exposes the database settings through the database settings dialog, and the Database Settings page is the reference for what the dialog shows. A team can review the cipher, the key derivation function and its parameters, and the inner random stream cipher for protected fields in that dialog. For Argon2, the Security page says the defaults should be compatible with most devices and recommends not going below 2 Argon2 iterations, and KeePass offers Argon2d and Argon2id in 2.x only, while the Security page recommends Argon2d for resistance to GPU and ASIC attacks. The "1 Second Delay" button computes an iteration count that gives a 1 second load or save delay on the current computer, which is a practical starting point but not a security standard. KeePass documents no default database cipher and no default key derivation function, so record the values your database actually uses instead of assuming them. The review is an internal task, and an independent assessor can check the records you produce.
What should we ask KeePass or its vendor about post-quantum support?
Ask for a written position on each point that matters to your inventory, and for a dated answer. The supplied facts show that the KeePass Security, FAQ and Trust pages, checked on 2026-12-03, do not mention quantum computing or post-quantum cryptography, and KeePass has published no list of post-quantum algorithms such as ML-KEM, ML-DSA or SLH-DSA. The news page contains no roadmap statement on post-quantum cryptography, FIPS or CNSA 2.0. Ask the vendor or project to state, with a version number, whether any post-quantum algorithm is available, whether one is planned, how a customer would enable it, and what it would affect: database encryption, key derivation, the update check signature (RSA-4096 with SHA-512), Authenticode binary signing, and TLS on HTTPS, WebDAV or FTPS connections. Ask also about the KDBX 4 notes conflict on Argon2 variants, which names only Argon2d while the Security page and the specification name Argon2id. Keep the answers on file with their dates.
Does the update check or plugin loading create a post-quantum dependency?
Yes, in limited places. Since KeePass 2.34, the optional update check downloads a version information file over HTTPS, and that file is digitally signed with RSA-4096 and SHA-512, so it depends on a public-key algorithm. The release notes say program binaries are signed with Authenticode, which also depends on public-key cryptography. TLS is used for HTTPS, WebDAV and FTPS connections, and the synchronization page does not describe encryption in transit or server authentication for any protocol, so review those connections with your network and certificate team. KeePass plugins are loaded from the Plugins folder of the application directory, and the plugins page warns that an attacker who can write there could typically also replace KeePass.exe. Restrict write access to that folder. These items are part of the inventory even though the database format itself does not use public-key cryptography.
What can go wrong with database settings and key files
The most common weaknesses in a KeePass database are not in the cipher itself but in the settings chosen when the database was created or last saved. The KDBX 4 format, introduced with KeePass 2.35, is what allows Argon2 for master key transformation, and the KDBX 4 notes say ChaCha20 as a file encryption algorithm forces the KDBX 4 format from KeePass 2.44 onward. A database saved with the 1.x format, or with a 2.x setting that still uses AES-KDF, does not get Argon2 protection. Check the format and key derivation function of each database you rely on, and plan to re-save any legacy database under KDBX 4 with Argon2d or Argon2id, after confirming in the current KeePass documentation which of the two the version in use supports. Note that the KDBX 4 notes page and the Security page disagree on this point, so confirm it in your own version before relying on either.
Argon2 iteration count is the setting that most often gets lowered without anyone noticing. The Database Settings page describes a "1 Second Delay" button that computes an iteration count giving roughly one second per load or save on the current machine, and the Security page recommends not going below 2 Argon2 iterations. A count set for a fast workstation may be far too low for a slower device or a weaker attacker's hardware. Record the iteration count, memory and parallelism values for each database in your inventory, and review them whenever the database is re-saved on a different computer.
Key files create a false sense of protection when they sit next to the database they are meant to protect. KeePass key files can be XML, exactly 32 bytes, 64 hexadecimal characters, or any other file that is hashed, and every component in the master key must be present to open the database. If the key file is stored in the same folder, on the same synchronized drive or in the same backup set as the database, anyone who obtains the folder obtains both halves. Store key files separately, and confirm that the Plugins folder under the application directory is writable only by administrators. KeePass plugins load from that folder, and the plugins page warns that an attacker who can write there could typically also replace KeePass.exe. For sync, the Synchronization page documents local and network file access, FTP, HTTP, HTTPS and WebDAV, with SCP, SFTP and FTPS added by the IOProtocolExt plugin, but it does not state encryption in transit or server authentication for any protocol. Confirm both with the server and plugin documentation before trusting a sync path.
How DeployOpen helps teams review and harden KeePass deployments
DeployOpen reviews how a KeePass deployment encrypts its databases, derives keys and handles key files, plugins and sync, inside the client's own environment. We scope the review in writing, document what each setting does, and hand over findings with evidence that security and compliance teams can check.
How we scope
- We agree the scope in writing before work starts, naming the KeePass editions, versions and databases in use.
- The scope lists which KDBX format versions, cipher and KDF settings, key file types and plugins are included.
- We confirm which sync protocols and update channels are in scope, since sync transport is not covered by the KeePass documentation.
How we build
- We record the database cipher, KDF, iteration or Argon2 parameters and master key components for each database.
- We check the Plugins folder permissions and key file storage, since an attacker who can write to the plugins folder could replace KeePass.exe.
- We test current settings against the KeePass Security and KDBX specification pages, noting where those documents conflict.
How we hand over
- We deliver a written findings report with each setting, its observed value, its version and its source documentation.
- The report separates confirmed facts from items the client must verify with the KeePass project or in their own environment.
- We document the configuration and access controls so compliance teams can review the evidence themselves.
How we support
- Ongoing support and retesting after KeePass upgrades are available as a retainer, scoped in writing.
- We recheck KDF and cipher settings when a new KeePass release or KDBX format change is published.
- We track vendor statements on post-quantum topics and report any change against the documented configuration.

