通过密码保护文件 [英] Protect a File Through Password

查看:99
本文介绍了通过密码保护文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想用一个无法打开的密码保护我的文件(当有人没有密码时)但是能够通过编程修改它甚至它受密码保护。



任何建议如何操作或任何好的学习链接。



记住一件事,所有事情都要通过c#编码完成。



提前多多谢谢:)

Hi,

I want to protect my file with a password that can't open (when someone not no password) but able to modify through programming even it is password protected.

Any suggestion how to do it or any good link to study.

Remember one thing, all thing be done through c# coding.

Thanks a lot in advance :)

推荐答案

你不能,就这么简单。 NTFS不支持它,你不能通过编写完全C#代码来添加支持。



添加这个支持比你想的更多的工作。我希望你知道如何编写和调试Windows内核代码,因为它需要驱动程序来执行它,并且至少有一个应用程序来管理密码表并分配和恢复密码。



忘记这个垃圾。它是无用的,并且除了使用内置函数正确设置安全性之外,不会添加任何安全性。
You can't, it's that simple. NTFS doesn't support it and you can't add the support by writing entirely C# code.

Adding this support is FAR more work than you're thinking of. I hope you know how to write and debug Windows Kernel code because it's going to take a driver to do it and at least one application to manage the password table and assigning and recovering passwords.

Forget this garbage. It's useless and doesn't add any security over and above properly setup security using the built-in functions.


这篇关于通过密码保护文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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