Hi,
I have an application that supports plugins via QPluginLoader and everything's working fine. Now I would like to load a Plugin from some memory location (e.g. char* or QByteArray) instead of loading it directly from a file denoted by its filename.
The background is as follows: I would like to encrypt the myplugin.dll file (say to encryptedplugin.cdll) and then load all file content to some memory location, do a raw byte decryption and then pass the decrypted content to the QPluginLoader:
pseudocode:
char* encryptedcode = LoadFile(encryptedplugin.cdll)
char* code = decryptCode(encryptedcode, key) //provided separately
QPluginLoader loader
loader.loadFromRAM(code)
....
Is there any possibility to do that? (PS: I don't want to create a decrypted temporary dll-file on the file system)
Bookmarks