Hello Rabbit,
you are right. If I want to decrypt a whole file or a string without the intention to add somethings later, the code works. I only need to cut the last NUL chars while decryption. So far so good.
What I want to achieve is to en-decrypt log-files. Means whenever a log-string will be added to the log-file I want to
Next log-string need to be encrypted, added and save the file in the same manner.
But when I decrypt that log-file afterwards, the out put is not the same as the origin log-strings.
May be you have an idea to solve that.
By the way, Before I started to encrypt with your code I needed to change somethings to make it happen.
If you are interested, please let me know where to post or send.
Cheers Asterios