#1 2020-07-23 09:39:35

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Encrypted logger

Does the SynLog allow to encrypt the text written to the log file + log viewer that read that logs? I don't want to allow competitors to analyze my app logs to prevent from stealing my algorithm/ideas or see my app errors. I tried to find the "crypt" word in the SynLog.pas file but unsuccessful.

Offline

#2 2020-07-23 09:47:16

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,673
Website

Re: Encrypted logger

It is not supported directly.
But I will add it to the feature list soon.

Offline

#3 2020-07-23 10:38:08

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Re: Encrypted logger

Great! I'll be very grateful. Actually I'm encrypting the text with salt = line number to make the log lines harder to decrypt for all those who would like to find any similar actions. I mean, if you encrypt the following lines:

Log.txt

202-01-01 12:12:12 Ping
202-01-01 12:12:12 Ping
202-01-01 12:12:12 Ping
202-01-01 12:12:13 Ping -> time change

the log with encrypted lines above can look like that:

8f1befe8
8f1befe8
8f1befe8
e54993b2  -> time change

So, someone can see that I'm doing the same operation in interval, this is an information that I want to hide from competitors. So I've added the salt = line number that generates:

8f1befe8
e54993b2
68eb0414
c8eb0112

I know that this is a very simple method of salting but for novice hacker can be impulse to stop trying to reverse engineer my log or guess my internal processes.

Of course, adding the extra milliseconds to the date and encrypting entire line implicate that encrypted text won't be the same for each line.

If you just implement an encrypted logs mechanism I would handle salting myself.

Last edited by radexpol (2020-07-23 10:38:52)

Offline

Board footer

Powered by FluxBB