I wonder whether it is possibile to pause a file operation such as read a file, for example, I have a file named A.pdf
in ciphertext, there is an App--Foxit Reader, want to read the A.pdf
file, I want to pause the read operation for a while, so that I have time to decrypt the A.pdf
file, and then pass the plaintext to the Foxit Reader. I wonder whether there is a way to do this? That is be transparent for the Apps using cipher content. Any ideas?
I don't want to write my own App to do the read operation, I just want to detect the operation, and when an App is reading a specified file under a directory for encrypted files, I just decrypt the file and after read/write, I encrypt the file again. Certaintly, the App that can read/write my file must satisfy some certain conditions I have set, it's not a problem.