What method does Office 2007 use for encryption (when you select Encryption and set a password from the Office menu)?
My C # application should create and read encrypted Excel 2007 (.xlsx) files. It is important that these files remain accessible from Excel, so I have to use the Microsoft encryption method, I can not brew my own.
A regular Excel 2007 file is a ZIP compressed file, and I access it using ExcelPackage , which internally uses * System.Io.Packaging.Package * (part of .net 3.0).
Office encryption, however, is not standard ZIP encryption. The Package class does not support encryption and reports a damaged file. 7Zip opens the file (without password) and shows several binaries inside.
source
share