I'm currently developing an application.
The application writes users' activities to a log file (text file). To view the log file, admins will click a command button, which then fills a listbox control with the content of the log file.
But I'm afraid smart users would recognize a log file if they see the content.They could then open the text file via windows explorer and overwrite text file with
"YOU ARE A DUMMY".
Next time the admin view the log file, he would see
"YOU ARE A DUMMY".
I think encrypting the log file makes the file meaningless to the smart users.
How do I encrypt the text file on saving, and decrypt it
on filling the listbox?
Or you could suggest any other solutions.
The application writes users' activities to a log file (text file). To view the log file, admins will click a command button, which then fills a listbox control with the content of the log file.
But I'm afraid smart users would recognize a log file if they see the content.They could then open the text file via windows explorer and overwrite text file with
"YOU ARE A DUMMY".
Next time the admin view the log file, he would see
"YOU ARE A DUMMY".
I think encrypting the log file makes the file meaningless to the smart users.
How do I encrypt the text file on saving, and decrypt it
on filling the listbox?
Or you could suggest any other solutions.