Sample extension to demonstrate LibreOffice 7.0 XPackageEncryption interface.
Interface XPackageEncryption allows to implement new encryption methods (dataspaces in terms of MS-OFFCRYPTO) to use with documents. One default implementation for password protected documents ("StrongEncryptionDataSpace") already embedded into LibreOffice core. But there can be more of them, for example "DRMEncryptedDataSpace".
This sample extension implements new custom encryption service "XorEncryptedDataSpace" that does primitive XOR to demonstrate features of this interface. It can encrypt documents on save and decrypt documents using this encryption type on load.