You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Spreadsheet.read() only supports opening encrypted XML format (.xlsx) spreadsheets, I use the following workaround to decrypt a binary format file (.xls):
Thanks, Juan! I wasn't aware of that factory method signature which appears to be a convenience wrapper for the decryption code that's in the POI docs.
When I tackled encryption/decryption some time ago I could only get it to work on XLSX files. Perhaps things have improved in POI 4.0 without it being documented.
Looks like this will simplify things greatly. Look out for an update soon!
cfsimplicity
changed the title
Workaround: Use POI to decrypt a non-XML encrypted Excel spreadsheet
Support decryption of encrypted binary (XLS) spreadsheets
Apr 12, 2019
Thanks again for suggesting it, Juan. Looks like that signature was added to POI 4 years ago but the docs have never been updated. Would've saved me a lot of bother if I'd known about it, but better late than never!
Will push a new version with this to master shortly (which will also include the latest POI 4.1.0 release).
Since Spreadsheet.read() only supports opening encrypted XML format (.xlsx) spreadsheets, I use the following workaround to decrypt a binary format file (.xls):
https://gist.github.com/jeaguilar/157aa208ee90a36e53fc3ca0e012f179
The text was updated successfully, but these errors were encountered: