Hi I had to do this before. I ended up using a byte[] instead, hopefully that will work for you. It's still all in-memory.
I posted it here: http://stackoverflow.com/questions/25441366/bouncycastle-in-memory-pgp-encryption-in-c-sharp/25468337#25468337 Regards, Paul On 7/5/15, Zach Zoeller <zach.zoel...@gmail.com> wrote: > Hello, > > I'm attempting (in C#) to encrypt a Stream object instead of using a > FileInfo object. I have attached my source code below. Any help would be > appreciated. > > Thanks! >