如何阻止某个文件夹的访问?

发布于 2024-10-05 21:25:52 字数 58 浏览 0 评论 0原文

我想锁定某个文件夹并使用密码解锁它,有什么想法吗?

PS我是一名delphi编码员!

I want to lock a certain folder and unlock it using a password, any ideeas ?

PS I am a delphi coder!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毅然前行 2024-10-12 21:25:52

有几种方法:

  1. 阻止任何人访问该文件夹
    应用程序直至解锁。这
    文件保持不变。
  2. 全部加密
    文件夹中的文件并解密它们
    即时。
  3. 将文件移动到
    加密存储并挂载它
    存储为虚拟文件夹。

第一种方法是有缺陷的,因为它允许用户在安全模式下重新启动系统,或者只是将硬盘驱动器连接到其他计算机并获得对文件夹的访问权限。

第二种方法可以使用文件系统过滤器驱动程序。您可以自己编写,也可以使用我们的 CallbackFilter 产品(其中包括用于此特定目的的加密示例) 。

使用我们的产品也可以采用第三种方法。您可以使用 回调文件系统 将虚拟存储挂载为磁盘或 NTFS 磁盘上的文件夹(请参阅VMunter 示例)。

市场上也存在 Pismo File Mount 产品,如果它具有 Delphi API,那么它可以开箱即用。该产品使用 FS Filter 驱动程序将容器作为文件夹安装在磁盘上。不过,我个人并不喜欢这种方法——FS 过滤器驱动程序比文件系统驱动程序更棘手,并且更容易与第三方过滤器发生冲突。

There exist several approaches:

  1. block access to the folder to any
    application until it's unlocked. The
    files remain unchanged.
  2. encrypt all
    files in the folder and decrypt them
    on-the-fly.
  3. move the files to
    encrypted storage and mount this
    storage as a virtual folder.

The first approach is flawed as it lets the user reboot the system in safe mode or just take the HDD to other computer and gain access to the folder.

Second approach is possible using file system filter driver. You can write your own or you can use our CallbackFilter product (which includes Encrypt sample for this particular purpose).

Third approach is also possible using our products. You can mount a virtual storage as a disk or as a folder on NTFS disk using Callback File System (see VMounter sample).

There exists also Pismo File Mount product on the market and it would work for you out of the box if it had Delphi API. That product mounts a container as a folder on the disk using FS Filter driver. Personally I am not fond of this approach, though -- FS filter drivers are trickier than file system drivers and more prone to conflicts with third-party filters.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文