Expand description
KeePass KDBX (.kdbx) parser.
Parses an encrypted KeePass database (3.1 and 4) via the keepass crate and maps its group tree
into a ParsedImport (ciphers + folder paths + relationships) for the generic submit
pipeline.
Constantsยง
- KDBX_
SIGNATURE ๐ - The first four bytes of every KDBX file: signature
0x9AA2D903, little-endian. - MAX_
GROUP_ ๐DEPTH - Maximum group nesting that will be traversed
- MAX_
KDBX_ ๐SIZE - Ceiling on the input file size
- TOTP_
FIELD_ ๐KEYS - KeePass 2.x native TOTP fields and KeePassXCโs
otp
Functionsยง
- build_
totp ๐ - Builds the login TOTP value from either KeePassXCโs
otpfield or KeePass 2.xโsTimeOtp-*fields, returning a Base32 secret for default settings or an otpauth URI otherwise. - check_
kdbx_ ๐size - map_
entry ๐ - map_
open_ ๐error - Maps
keepassopen errors to the credential-vs-corrupt distinction the UI surfaces. - non_
default ๐ - non_
empty ๐ - parse ๐
- Parses a KeePass KDBX database, zeroizing the secret inputs (file bytes, password, key file).
- parse_
kdbx ๐ - time_
otp_ ๐secret_ as_ base32 - Resolves the KeePass 2.x TOTP secret (in any supported encoding) to a Base32 secret.
- totp_
algorithm ๐ - traverse ๐