禁用文件夹/文件复制 [英] Disable Folder/File Copy

查看:132
本文介绍了禁用文件夹/文件复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想将属性设置为目录,以便-此(必需)目录无法复制,发送至,移动到任何其他位置.

目的:我们可以防止复制安全数据.

请提出建议/帮助.

Hello There,

I want to set attribute to directory so that - This (Required) directory can not copy, send to, Move to any other location.

Purpose : We can prevent making copy of secure data.

Please suggest/Help.

推荐答案

您不能阻止用户复制或移动数据.为什么?

因为代码始终以AS的身份运行,所以它是由启动它的用户运行的.它继承了用户安全令牌和他/她的所有权限.

现在,文件复制操作无非就是打开文件,读取其中的字节,然后关闭文件.这听起来像您的应用程序做什么吗?应该.

如果用户无法打开并读取文件以进行复制,则您的应用程序也将无法读取该文件.


保护数据的唯一方法是使用可逆的加密方案对其进行加密.
You can''t prevent a user from copying or moving the data. Why??

Because code always runs AS the user who launched it. It inherits the users security token and all of his/her permissions.

Now, a file copy operation is nothing more than open a file, read the bytes in it, then close the file. Does that sound anything like what your application does?? It should.

If the user is unable to open and read the file for copy, your application won''t be able to read the file either.


The ONLY method you have of securing the data is to encrypt it with a reversible encryption scheme.


这篇关于禁用文件夹/文件复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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