Joe
Joe

Reputation: 3620

How do you open encrypted OOXML document in C#?

I want to open encrypted OOXML files, which are stored as streams inside a compound OLE file. Microsoft has an API for OOXML, (OOXML Format SDK 2.0, but it seems to lack a way to manipulate encrypted OOXML documents. So, this breaks into two questions.

Upvotes: 2

Views: 2084

Answers (1)

David B Heise
David B Heise

Reputation: 396

Short answer: no there is no higher level API. Long answer: the MS-OFFCRYPTO Examples is the best example of how to decrypt it, but you will have to use a library (or make your own) for interacting with the OLE document. There are many libraries for OLE Structured Storage such as OpenMCDF and the library from GemBox Software

Upvotes: 1

Related Questions