Recover KeePass key file with PhotoRec
Posted: 20 Mar 2021, 11:12
Salut and hello!
I have successfully recovered my KeePass database "Database.kdbx" from a deleted NTFS partition using PhotoRec.
The problem is that I didn't use a master password to open the KeePass database but a key file: https://keepass.info/help/base/keys.html#keyfiles .
How can I recover this file with PhotoRec? I've read that one can add own extensions to PhotoRec, but I'm not that technical to write that on my own.
I would be really grateful if someone could help me create this extension or add this file format to PhotoRec so that I may recover the lost key file with PhotoRec.
The file itself does not look complicated, here's the content of an example file, the file ending is ".key" as in this example file "Database.key":
Thank you very, very much and have a great weekend!

I have successfully recovered my KeePass database "Database.kdbx" from a deleted NTFS partition using PhotoRec.
The problem is that I didn't use a master password to open the KeePass database but a key file: https://keepass.info/help/base/keys.html#keyfiles .
How can I recover this file with PhotoRec? I've read that one can add own extensions to PhotoRec, but I'm not that technical to write that on my own.
I would be really grateful if someone could help me create this extension or add this file format to PhotoRec so that I may recover the lost key file with PhotoRec.
The file itself does not look complicated, here's the content of an example file, the file ending is ".key" as in this example file "Database.key":
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<KeyFile>
<Meta>
<Version>1.00</Version>
</Meta>
<Key>
<Data>RAvYjYrAr0HQSLfl5ZIWWnQya8OGGKDBZipbJVkeYMQ=</Data>
</Key>
</KeyFile>