Hi, I have problem.
I want/need encrypt file and put the encrypted data into the same one (not
create new file).
For example...
I have unencrypted file (myfile.txt) and I want encrypt it, but don't
create new file (let's say myfile.encrypted), but I want the encrypted data
put into the same file (myfile.txt). If I use this: *CryptoPP::FileSource
encryptFile("myfile.txt", true, new
CryptoPP::StreamTransformationFilter(cbcEncryptor, new
CryptoPP::FileSink("myfile.txt")));*, the FileSink will open the output
file (myfile.txt) in trunc mode (delete all previous data), but that is the
problem. The FileSource read files by 4096bytes chunk, so I need load chunk
-> encrypt -> replace unencrypted chunk with encrypted one -> repeat.
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.