I want to log the parameters which are given to a CryptoStream object in an application, to log the plaintext before it is encrypted.
I want to do this dynamically, without tampering with the original file. Is there a way to create a "layer" between the app and the framework to intercept the desired function calls, write the desired parameter to a text file, and then pass control back to the framework?
If yes, could you point me in the right direction, and give a sample?
And for those who have legal concerns about this (this sounds like a s/w cracking question, I know ;) ) : I have the permission of the developer to do this.