Skip to content

Commit 2c75068

Browse files
authored
Merge pull request #2 from coreyleavitt/feature/argon2-kdf-setters
Add KDF parameter customization and builder module refactor
2 parents 09f3202 + 4300545 commit 2c75068

9 files changed

Lines changed: 1008 additions & 158 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
python-version:
13-
- "3.10"
1413
- "3.11"
1514
- "3.12"
1615
- "3.13"

pykeepass/__init__.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,23 @@
88
from .attachment import Attachment
99
from .icons import icons
1010
from .version import __version__
11+
from .kdbx_parsing import (
12+
Argon2Config,
13+
AesKdfConfig,
14+
Cipher,
15+
KdfAlgorithm,
16+
)
1117

12-
__all__ = ["__version__", "PyKeePass", "Entry", "Group", "Attachment", "icons", "create_database"]
18+
__all__ = [
19+
"__version__",
20+
"PyKeePass",
21+
"Entry",
22+
"Group",
23+
"Attachment",
24+
"icons",
25+
"create_database",
26+
"Argon2Config",
27+
"AesKdfConfig",
28+
"Cipher",
29+
"KdfAlgorithm",
30+
]

pykeepass/blank_database.kdbx

-1.33 KB
Binary file not shown.

pykeepass/kdbx_parsing/__init__.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
from .kdbx import KDBX
22
from .kdbx4 import kdf_uuids
3+
from .builder import (
4+
build_kdbx_structure,
5+
build_kdbx3_structure,
6+
build_kdbx4_structure,
7+
Argon2Config,
8+
AesKdfConfig,
9+
Cipher,
10+
KdfAlgorithm,
11+
)
312

4-
__all__ = ["KDBX", "kdf_uuids"]
13+
__all__ = [
14+
"KDBX",
15+
"kdf_uuids",
16+
"build_kdbx_structure",
17+
"build_kdbx3_structure",
18+
"build_kdbx4_structure",
19+
"Argon2Config",
20+
"AesKdfConfig",
21+
"Cipher",
22+
"KdfAlgorithm",
23+
]

0 commit comments

Comments
 (0)