mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-20 12:54:41 -04:00
Add support for version 2 XML key files.
As discussed in #4317, the next KeePass2 release will ship with support for a new generation of XML key files which enable hash integrity checks. This patch adds support for reading and generating this new format. By default, KeePass2 now uses the .keyx extension for generated key files, which was added to KeePassXC's key generation file chooser filter. We continue to generate hashed binary key files by default, but the user can explicitly save the file with the new .keyx extension to generate an XML v2 key file (currently undocumented). When opening a database, the key file type is still determined by content negotation, so the file extension has no impact here. As an additional change, the legacy key file warnings have been improved slightly to be less confusing and more helpful.
This commit is contained in:
parent
404fd941e8
commit
cd0084f21c
12 changed files with 233 additions and 118 deletions
12
tests/data/FileKeyXmlV2HashFail.keyx
Normal file
12
tests/data/FileKeyXmlV2HashFail.keyx
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<KeyFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Meta>
|
||||
<Version>2.0</Version>
|
||||
</Meta>
|
||||
<Key>
|
||||
<Data Hash="FE2949B9">
|
||||
A7007945 D07D54BA 28DF6434 1B4500FC
|
||||
9750DFB1 D36ADA2D 9C32DC19 4C7AB01B
|
||||
</Data>
|
||||
</Key>
|
||||
</KeyFile>
|
Loading…
Add table
Add a link
Reference in a new issue