Reputation: 2571
I have a winform (in C#) that encrypt and decrypt a file... it's OK,
BUT the problem is it saves the decrypted file to the hard disk, and then i could use it ! Is there any way to reuse the decrypted file without saving it in hard disk ( that the user can see the decrypted file is the problem ! ) for example can i save the file to memory (RAM) and use it as an stream !? i have searched alot, and i found just memorystream(..).if it's the answer then how should i use it !!? i'll appreciate any help, and sorry for my bad english.
Upvotes: 0
Views: 136
Reputation: 67296
You can use the CryptoStream with MemoryStream to encrypt in memory. From what you describe, this would seem to be the best approach.
Upvotes: 4