How to write USB drive protection in C #

I need to write protection for a single write-protected USB drive so that data cannot be copied or even viewed. I want to lock a specific folder or, if possible, a full USB memory from copying or opening. Thanks in advance.

+3
source share
3 answers

If it cannot be viewed and copied, then what is it for writing?

If you want to make sure that only authorized programs / users can view the data, you need to somehow check whether the program is allowed or not, which means that you need to enable the reading (and therefore copying) of the USB drive.

- USB- , , . , , /, , , , (, ctrl-C , ) .

+2

, , , USB- .

+2

, . , , .

Password protection may interfere with access, reading and writing. Some devices have programmable interfaces for setting and clearing passwords. It is theoretically possible to use standard ATA commands to set passwords, but in practice I have not seen any USB devices that obey these commands. Some manufacturers provide password protection, but I think they do it in non-standard ways. You will have to analyze your methods and duplicate them in your own program.

0
source

Source: https://habr.com/ru/post/1752579/


All Articles