I have been programming for a bit in C# but never messed with RSA encryption before. I can encrypt/decrypt a standard string easily. However if I ever read in a text file (by using a filestream.read into a buffer) I can never get it to encrypt right or at all. It'll either return the encrypted bytes as null or if it does return it'll come back as a bunch of question marks when I decrypt it.
Question
sathenzar
I have been programming for a bit in C# but never messed with RSA encryption before. I can encrypt/decrypt a standard string easily. However if I ever read in a text file (by using a filestream.read into a buffer) I can never get it to encrypt right or at all. It'll either return the encrypted bytes as null or if it does return it'll come back as a bunch of question marks when I decrypt it.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts