Skip to main content

Module kdbx

Module kdbx 

Source
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 otp field or KeePass 2.xโ€™s TimeOtp-* fields, returning a Base32 secret for default settings or an otpauth URI otherwise.
check_kdbx_size ๐Ÿ”’
map_entry ๐Ÿ”’
map_open_error ๐Ÿ”’
Maps keepass open 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 ๐Ÿ”’