How to properly encrypt OLE2 files with RMS SDK 4.2?

Даниил Куприянов 20 Reputation points
2024-03-28T15:32:30.43+00:00

Hi, our android application is using RMS SDK 4.2 and we need to encrypt OLE2 files. Unfortunately, the examples of using this API did not demonstrate the ability to encrypt office documents. When trying to encrypt an office document, the RMS SDK encrypts the entire file, not the "content" of the container. As a result, the same RMS SDK client cannot decrypt files encrypted in this way. Could you demonstrate encryption of office documents using RMS SDK 4.2?

P.S. For decryption, we use the POI library to parse the OLE2 container to find the license, policies and encrypted content, and only then use CustomProtectedInputStream.create(). Perhaps when encrypting we need to do the same thing, but in reverse order, however, we were unable to achieve this at the moment.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,748 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,489 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,168 questions
0 comments No comments
{count} votes