How to properly encrypt OLE2 files with RMS SDK 4.2?
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.