There is a file in which logs are constantly being written, is it possible such an option as encryption of the data included in it in real time?
- Yes, this option is possible. - aleksandr barakin
- @alexanderbarakin I would like to know how, well, not a direct command, but at least a link to the resource. - Dmitry Tolkachev
- for example: supplement the program code that generates these same logs with the appropriate code. - aleksandr barakin
- oneIn addition, you can place log files on an encrypted file system. True when reading they will be automatically decrypted. - Mike
- oneThe exact answer will depend on the way these logs are written. - nobody
|
1 answer
If the logger does not close the log during operation, then you can:
mkfifo /tmp/log.log logkeys --start --output /tmp/log.log echo enter password: openssl aes-256-cbc -a -salt -in /tmp/log.log -out /tmp/log.enc -pass stdin The result is an encrypted file with a password from the keyboard
- does not work, is it possible to intercept the stream that goes to the file and encrypt it on the fly? - Dmitry Tolkachev
- @ Dmitry Tolkachev Fifo kakraz used to intercept output to a file. Perhaps the method is not suitable for this program - eri
- it simply does not start when I specify this file, I decided to write my logger and embed encryption there, since there is a library) - Dmitry Tolkachev
- will have to try - eri
|