We are using ClosedXML library to generate our excel reports. A new requirement form client is to password protect reports marked as confidential. There is a method XLWorkbook.Protect() with some overloads, however, none of it is encrypting a file, just locking structure at best. In other words, you can still see data after opening a file, MS Excel will not ask you for a password.
- Is ClosedXML even supporting excel file encryption? On their wiki which I found on GitHub, there is the only article about protecting sheets and even for formatting and structure.
- Was anyone able to find a way with ClosedXML? We would like to avoid using another library (like Spire.XSL; Microsoft.Office.Interop.Excel is not an option) if possible.
Thanks