Stupid question I know. But I have looked for HOURS on examples of how to do this. Every single example I can find uses streamwriter or streamreader which reads and writes text, not byte arrays.
Is it possible to get a byte array from a CryptoStream?
The closest I can find is using a streamwriter and then using GetBytes(SomeString).
I don't understand, if CryptoString is encrypting binary data, why can't I get the byte array that the cryptostring creates directly from it? Seems like a huge chance for corruption by going from string data back to bytes.
Any help? I'm about to pull my hair out. I've tried everything I can think of.