I'm working typing a program that store strings in a log file. The problem is that the characters could be more than one or only one, and arrives very fast (less than second maybe).
I'm doing an experiment, the idea is to do like a simple "text editor", that each key that you press will be stored encrypted automatically in a file in real time. Also will have emoticons, represented by "[:SMILE]" and arrives using a button, so appears . Is for that that the chars could be of lenght>=1 .
The encriptation method will be using asimetric, I dont know if RSA or PGP, what is better for that?
I want to find a good methology for encrypt it because maybe the encryption progres could be slow.
One example is use one buffer and when is full liberate it and crypt it, and append the file in crypted blocks of 1024 for example and uncrypt it using this block size.
I don't know if that is the optimized solution... How to work with crypted logs that are generated crypted and fast?