虚拟文件? 在 c/c++ 或 C#
我想做的是修改目录中的所有文件,以便它们使用标准加密,需要密码和我自己的加密的第二层。 我想让我的应用程序查看该目录并创建一个虚拟的解密目录以正常打开这些文件。 它们需要非线性读取(即我可以录制的音频文件)。 文件管道是一个解决方案吗?
我怎样才能做到这一点? 我了解加密部分,但不了解虚拟文件。 我知道 Truecrypt,但我会将其中一些放在 DVD 上,我担心如果我尝试复制 4.3gb Truecrypt 文件,如果块损坏,则会出现校验和错误。 这将阻止我复制它。
What I would like to do is modify all the files in a directory so they use a standard encryption, requiring a password and a 2nd layer of my own encryption. I would like have my application look at the directory and make a virtual, decrypted directory to open these files as normal. They requires non linear reads (i.e. audio file that I may record). Would file pipes be a solution?
How can I do this? I understand the encryption part, but not the virtual files. I am aware of Truecrypt, but I'll be putting some of these on DVDs and I am worried that if I tried copying the 4.3gb Truecrypt file a checksum error will occur if a block becomes corrupted. This would prevent me from copying it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此我仍然推荐 TrueCrypt。 不用担心腐败,TrueCrypt 声称可以很好地处理这个问题。 来自常见问题解答:
当 TrueCrypt 卷的一部分损坏时会发生什么?
在加密数据中,一个损坏的位通常会损坏其所在的整个密文块 TrueCrypt 使用的密文块大小为 16 字节(即 128 位)。 TrueCrypt 使用的操作模式可确保如果某个块内发生数据损坏,其余块不会受到影响。 另请参阅问题“当 TrueCrypt 卷上的加密文件系统损坏时我该怎么办?”
I'd still recommend TrueCrypt for this. Don't worry about corruption, TrueCrypt claims to handle this perfectly well. From the FAQ:
What will happen when a part of a TrueCrypt volume becomes corrupted?
In encrypted data, one corrupted bit usually corrupts the whole ciphertext block in which it occurred. The ciphertext block size used by TrueCrypt is 16 bytes (i.e., 128 bits). The mode of operation used by TrueCrypt ensures that if data corruption occurs within a block, the remaining blocks are not affected. See also the question 'What do I do when the encrypted filesystem on my TrueCrypt volume is corrupted?