Hello,
I would like to encrypt multiple files and put them all together in one
file. So I create an Object of type FileSink and I would like to use a code
like
CryptoPP::FileSink *file = new CryptoPP::FileSink("/path/to/my/file");
std::string str1;
std::string str2;
str1.append("hi ");
str2.append("how are you");
CryptoPP::StringSource(str1,true, file);
CryptoPP::StringSource(str2,true, file); //crash
Another possibility would be
filter1->Attach(file);
//do something, encrypting a string with filter1
filter1->Detach(file); //it seems that the file Object is destroyed here
filter2->Attach(file); //Crash
//encrypt some data with filter2 and append it to the FileSink 'file'
filter2->Detach(file);
What I should happen: I would like to have an archive File with a encrypted
String (metadata) and then the binary file content, then metadata of the
next file and then file content again. And this for multiple files. But
both need different filters, because there are different parameters for
metadata and file contents.
thanks you very much and
kind regards.
--
--
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.