Apache OpenOffice (AOO) Bugzilla – Issue 118936
Can't open docx or xlsx 2010 file with password (MS Office 2010 "Agile Encryption")
Last modified: 2024-03-18 21:17:34 UTC
reproduce steps: 1)new MS file with open password(xlsx) 2)open it with AOO 3)Select "Microsoft Excel 2007 XML" in Filter Selection dialog defect: open failed notes: open xlsx file without password successfully.
can open xlsx file created by MS 2007. Can't open xlsx file created by MS 2010
not sure how to vote but please consider this message as my +1 for the issue.
Reproduced with AOO 3.4.1 on Windows 7
Created attachment 80995 [details] Bugdoc created with Excel2010
The password for the sample docs is "hello".
This looks more like a request for enhancement (add support for Excel 2010 encryption support) than a bug. Probably not something that we can do for 4.0
Created attachment 81041 [details] Testfile saved with pwd 'hello' using MS2007
Confirming that this is an enhancement request. The difference between the encrypted Excel 2007 and 2010 formats is mostly the EncryptionInfo. Excel 2007 uses a binary format for the EncryptionInfo Stream (version 4.2 as defined in chapter 2.3.4.5 of MSOFFCRYPTO.pdf) whereas Excel 2010 uses an XML-based format (version 4.4 as defined in chapter 2.3.4.10 of the same MSOFFCRYPTO.pdf).
Code pointer for volunteers: the source file main/oox/source/core/filterdetect.cxx with its function lclReadEncryptionInfo() and FilterDetect's method extractUnencryptedPackage() are a good starting point.
remove showstopper request, it's no bug but an enhancement No easy fix available in time
*** Issue 92645 has been marked as a duplicate of this issue. ***
This is still an issue even in the latest trunk. We need to add support for the MS-OFFCRYPTO.pdf section 2.3.4.10 "Agile Encryption". I am working on it. So far I can parse the Agile Encryption headers, distinguish between Standard and Agile encryption, and get OpenOffice to ask for a password when the Agile encrypted file is opened, but the actual decryption and verification is still WIP.
Fixed by commit 506fa58b1970084a0caacb50b3a805e469be4756, resolving fixed. Thank you for your bug report and sample files!
Cherry-picked for AOO42X