pyOneNote icon indicating copy to clipboard operation
pyOneNote copied to clipboard

Feature request: Handling of password-protected documents

Open huettenhain opened this issue 2 years ago • 2 comments

There are password-protected OneNote documents, for example this one:

462bf8a2e19a3e2dd4e5635aa5089e7bdc291d5c5c4665549f64f67abf0b598a

The pyOneNote library can currently not handle those and crashes during the initialization of FileNode because the file node type ObjectDataEncryptionKeyV2FNDX is not implemented. Since this seems to be documented, I was hoping it might be possible to implement support for password-protected documents.

huettenhain avatar May 07 '23 08:05 huettenhain

Will try to implement this next.

More info: image

https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-offcrypto/9cf5f15d-5968-4228-beb7-9ab98fbaabfb

DissectMalware avatar May 09 '23 17:05 DissectMalware

Seems we can use this

https://github.com/nolze/msoffcrypto-tool/blob/master/msoffcrypto/method/ecma376_agile.py

DissectMalware avatar May 09 '23 17:05 DissectMalware