RE: Encryption for a log and Unicode Characters...? Yikes!

Tech-Archive recommends: Fix windows errors by optimizing your registry



RobKinney1 <RobKinney1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Thank you for replying.
>
> We are looking for a simple way to "encrypt" text to a log file in real time
> that has very low overhead for the processor, yet still keeping the log files
> the same size.

There are various ways you can do that, but frankly it becomes easier
if you treat the data as binary - encode it (eg using Encoding.UTF8 or
Encoding.Unicode) and then do whatever simple "encryption" you want.
However, that way you will *not* get logs which are viewable in
notepad. Is that really an issue for you? I would have thought you only
wanted log files which, if sent to you, you can decode.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: reading log files in real time
    ... > I'm looking for a way to read log files in real time, ... The sender therefore does ... > this message which arise as a result of e-mail transmission. ...
    (perl.beginners)
  • reading log files in real time
    ... I'm looking for a way to read log files in real time, ... E-mail transmission cannot be guaranteed to be secure or error-free as ... The sender therefore does ...
    (perl.beginners)
  • [opensuse] How can I setup live viewing of logs via a web browser?
    ... Is there a way I can view my logs via a web browser in real time, ... I know I can use apache ssi, but it didn't seem to parse the files correctly. ... Having a syslog server, and having people be able to get to their applications log files from a single web page. ...
    (SuSE)
  • RE: Encryption for a log and Unicode Characters...? Yikes!
    ... We are looking for a simple way to "encrypt" text to a log file in real time ... We decided that a simple distortion of the ASCII values would suffice ... This is located in a while loop performing this on every character. ... This would cause our log files to be the same size since it is just a 1-to-1 ...
    (microsoft.public.dotnet.languages.csharp)
  • Python Class for Apache log analysis
    ... I am looking for a python package that I could employ to analyze ... Apache's log files in real time. ... scripts, but most of them are outdated, while others are ...
    (comp.lang.python)