using crypto++ with boost::wserialization

Hi: I'm in the process of needing to encrypt a stream that I'm serializing to. Given that I'm using boost::wserialization to serialize classes, what is the best way of going about this, writing two separate streams to do the job, or writing stream filters? Fyi I'm planning on using Crypto++ has anybody already got streams/stream buffers that use this library? If I can use both approaches, what are the differences? I need to make the code as easy to read as possible. Any help appreciated. Cheers Sean.

Sean Farrow wrote:
Hi: I'm in the process of needing to encrypt a stream that I'm serializing to. Given that I'm using boost::wserialization to serialize classes, what is the best way of going about this,
The best thing is to realize that this is not a question regarding serialization - but rather one of io streams. Remeber that serialization can use any stream. So if can incorporate encryption/decryption in the stream you want to use, you're done. There is the boost iostream library for doing this sort of thing. Robert Ramey
participants (2)
-
Robert Ramey
-
Sean Farrow