To encrypt the output written to a file you will need to subclass the
FileAppender and override the method:

virtual protected void SetQWForFiles(Stream fileStream);

In your subclass you would need to construct a
System.Security.Cryptography.CryptStream around the fileStream passed
in, and pass the CryptoStream to the base class implementation of
SetQWForFiles.

What type of encryption you use, and how you manage the keys is up to
you.

Nicko

> -----Original Message-----
> From: Bonio Lopez [mailto:[EMAIL PROTECTED] 
> Sent: 26 April 2005 16:19
> To: [email protected]
> Subject: Encripted messages
> 
> Dear Sirs,
> What is the best way to have en encrypted logger, which 
> encrips messages, before dumping into the file?
> Thanks in advance,
> Boni
> 
> 
> 

Reply via email to