C++ Stream Ciphering
<p>working in Java lately I've been using Cipher Streams, <code>CipherInputStream</code> and <code>CipherOutputStream</code>. I'm looking for similar methods of stream ciphering in C++ that I could use on the other end of a socket wrapped in a CipherStream in java. </p>

<p>IE: </p>

<p>Have a server socket in CPP with a <code>CipherInputStream</code> wrapping it's <code>InputStream</code>, have a client socket in Java with a <code>CipherOutputStream</code> wrapping it's <code>OutputStream</code>.</p>

<p>This way, I could encrypt the data between the two. </p>

<p>There are reasons that I have to use C++ server side that I can't go into right now, I'm just looking for a way to achieve what I listed above. Any help would be greatly appreciated.</p>