I have a problem in encrypting/decrypting log file generated by log4j\'s RollingFileAppender. For the encryption I have tried to extend the RollingFileAppender, just call it
Looks pretty good. Are you resetting/initializing the cipher object for every message? You probably don't want to do that, but if you do then you need to think carefully about the structure of the cipher file, because the decryptor needs to know where the message boundaries are.