T
T
TechNOIR2018-03-22 15:09:33
C++ / C#
TechNOIR, 2018-03-22 15:09:33

C#. Is it possible to implement folder encryption?

Good afternoon.
Tell me please. Is it possible to implement folder encryption in C#?
That is, the idea is this:
Open the program. Specify the path to the folder and the key. Click on Encrypt. And then when you try to access the folder from Explorer, a program window will open asking you to enter the password.
Is it possible? Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Griboks, 2018-03-22
@Griboks

1) encrypt all files in the folder recursively into RAM
2) delete the folder
3) save the files to the archive instead of the folder
4) associate the program with this extension

M
mefutu, 2018-03-27
@mefutu

1. Encrypt each file in the folder
2. Change (add) the file extension for example file.doc.secure
3. Associate your program with this file.
4. When accessing the file, require a password (there may be additional manipulations such as the user has already entered the password, etc.)
5. Decrypt the selected file, change the extension back and open it with a standard program in a new stream.
6. Wait for the flow to complete, go to step 2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question