简体   繁体   English

如何将不可见的 header 添加到文本文件中?

[英]How to add an invisible header to a text file?

Good morning everbody,大家早上好,

I would like to know if there is a possibility to add an invisible text block to a text file.我想知道是否有可能将不可见的文本块添加到文本文件中。 It could be a header or at the bottom of the file, it does not matter.它可能是 header 或文件底部,没关系。

It should work like this, I open a text file I add my normal text, and before closing the file I add the secret text.它应该像这样工作,我打开一个文本文件,添加我的普通文本,然后在关闭文件之前添加秘密文本。 When I open it again I should be able to detect if there is any secret block that is written.当我再次打开它时,我应该能够检测到是否有任何秘密块被写入。

Is that doable?那可行吗? Is there any library that does this?有没有这样做的图书馆? I cannot find anything close to this (I work with C#)我找不到任何接近这个的东西(我使用 C#)

Thanks, Eric谢谢,埃里克

No, this is not possible.不,这是不可能的。 If the data is saved in a file, it can be read.如果数据保存在文件中,则可以读取。 Hiding of data is impossible.隐藏数据是不可能的。 It is either present (and thus readable), or not.它要么存在(因此可读),要么不存在。

You only option would be to encrypt your data as mikelegg has commented above.您唯一的选择是加密您的数据,正如 mikelegg 上面评论的那样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM