Manipulate file content before saving and before opening

Hi, is there a way to get the array of all bytes before save action to manipulate it? I mean, I need to intercept it before the file creation/updating because I’d like to encrypt and decrypt it to protect the content. I tried to override WriteDocument method in the plugin class but it cannot allow to change the bytes are going to be written. Thank you in advance for your help,

Fabio.

Sorry, no.

– Dale

Ok, thank you Dale for your prompt answer!
Have a nice day.

Fabio.

In read/write document you can read/write an arbitrary array of bytes. You are free to encrypt said bytes.