如何锁定一个USB驱动器上的文件夹? [英] How to lock a folder on a USB drive?

查看:177
本文介绍了如何锁定一个USB驱动器上的文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要实现(在C#)功能来锁定USB驱动器上的文件夹的要求。锁定,在任何PC上没有我的软件后,该文件夹无法访问(或更好的不可见)。我一直在使用的ACL(访问控制列表)尝试,但它并没有对USB工作。

I have a requirement to implement a feature (in C#) to lock a folder on a USB drive. After locking, in any PC without my software, this folder is inaccessible (or better invisible). I have tried using ACL (Access Control List) but it does not work on USB.

我原来的要求是,不要让人们看到一个文件夹的内容USB驱动器没有我的软件。当用户登录到我的软件,这个文件夹是访问,并在用户注销时,我的软件必须做一些事情,以确保该文件夹变成其他电脑无法访问。这使我想到锁定USB文件夹中。

My original requirement is that "Do not allow people to see the content of a folder on a USB drive without my software. When the user logs into my software, this folder is accessible and when the user logs out, my software has to do something to make sure this folder becomes inaccessible on other PCs". This leads me to think about locking the USB folder.

我已经尝试过一个变通使用密码压缩的文件夹(未压缩),但荏苒需要一定的时间(约2分钟的1 Gb)。所以,如果我有大量的数据(100 GB)的时间过长处理(该软件有做注销时处理此)。

I already tried a work around to zip the folder (not compress) with a password but zipping takes time (about 2 minutes for 1 Gb). So if I have a large amount of data (100 GB) it takes too long to process (The software has to process this when doing logging out).

推荐答案

有关的数据无法访问,你需要创建你的程序将是为现有磁盘或虚拟磁盘(驱动器盘符)上的虚拟文件夹的加密容器。首先是可能的庇斯摩文件安装,第二个 - 与我们的产品(固体文件系统 OS版) 。这两种方法都需要安装内核模式驱动程序到系统。这是不是一个应用程序的要求,但OS架构的要求。

For the data to be inaccessible, you would need to create an encrypted container which your program would represent as a virtual folder on existing disk or a virtual disk (drive letter). The first is possible with Pismo File Mount, the second - with our product (Solid File System OS edition). Both approaches require installation of the kernel-mode driver to the system. This is not an application requirement but OS architecture requirement.

从技术上看我们的做法是更可靠的,因为庇斯摩文件安装使用筛选器驱动程序,而SolFS使用文件系统驱动和过滤驱动程序更复杂,更容易兼容性问题(我们有基于过滤器的产品为好,这样我有两种方法经验)。

From technical point of view our approach is more robust because Pismo File Mount uses a filter driver, while SolFS uses a file system driver and filter drivers are more complicated and more prone to compatibility issues (we have filter-based product as well, so I have experience with both approaches).

对于那些谁否决了答案的:先阅读问题,请。 TrueCrypt的无关用C#。

To those who vote down the answer: read the question first, please. TrueCrypt has nothing to do with C#.

这篇关于如何锁定一个USB驱动器上的文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆