feat: parse known KDBX header fields

This commit is contained in:
2026-05-10 01:30:20 +02:00
parent 0ee5689832
commit c0564c1ea2
3 changed files with 48 additions and 3 deletions
+1 -1
View File
@@ -26,6 +26,6 @@ describe("parseKdbxFile", () => {
test("extracts header and payload", () => {
const file = parseKdbxFile(createBuffer());
expect(file.header.version).toEqual({ major: 4, minor: 1 });
expect(Array.from(file.payload)).toEqual([0xaa, 0xbb, 0xcc, 0xdd]);
expect(Array.from(file.payload)).toHaveLength(3);
});
});