不可删除/不可见的.txt文件(Undeleteable/ invisible .txt file)

编程入门 行业动态 更新时间:2024-10-14 18:18:56
不可删除/不可见的.txt文件(Undeleteable/ invisible .txt file)

目前我在C#中创建一个GUID键,将其放置在USB闪存驱动器上。 我使用此密钥进行用户识别。 密钥本身位于.txt文件内,易于操作。 有没有办法使.txt文件不可被清除,但仍然可读?

Currently I create a GUID-key in C#, to place it on a USB flash drive. I use this key for user identification. The key itself is inside a .txt-file, which is easy to manipulate. Is there a way to make the .txt-file undeleteable and invisible but still readable?

最满意答案

没有。

想象一下如果这可能会发生什么。 是啊。

使文件隐藏 - 也许隐藏+系统。 这是你能做的最好的。 如果用户删除了这个,那么,那是他的问题。 你做了契约性的“隐藏”,你不能对故意克服这些安全预防措施的用户的行为负责。

No.

Imagine what would happen if this were possible. Yeah.

Make the file hidden - maybe hidden+system. That's the best you can do. If the user deletes this anyway, well, that's his problem. You did the contractual "hiding", and you can't be responsible for the actions of a user who knowingly overcomes those safety precautions.

更多推荐

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

发布评论

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

>www.elefans.com

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