目前我在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.
更多推荐
发布评论