通过密码保护文件

编程入门 行业动态 更新时间:2024-10-10 00:21:20
本文介绍了通过密码保护文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想用一个无法打开的密码保护我的文件(当有人没有密码时)但是能够通过编程修改它甚至它受密码保护。 任何建议如何操作或任何好的学习链接。 记住一件事,所有事情都要通过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.

更多推荐

通过密码保护文件

本文发布于:2023-11-01 01:12:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1547815.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:密码保护   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!