user3042918
user3042918

Reputation: 21

Opening encrypted file without decrypting physically

I have developed Digital Library using vb.net, storing all files(PDF,MS-Officefiles and images) by encrypting, user searches files and open while opening I have to decrypt and open, now i don't want to decrypt file in the drive, can I open file by decrypting in the memory? please help to solve this problem,

Thank you in advance.

Upvotes: 1

Views: 1412

Answers (1)

Pantelis Natsiavas
Pantelis Natsiavas

Reputation: 5369

The answer is yes you could. You could decrypt a file and not store its decrypted version in the file system, but keep it in memory to display it or do it whatever you want.

You could use this this encryption/decryption tutorial as your base and alter the code so that it does not save the unencrypted content in a FileStream but in another Stream. Of course, you would have to use as a decrypting algorithm, the one you used to encrypt the file.

Hope I helped!

Upvotes: 4

Related Questions