使用 Rijndael 算法嵌入 IV 信息以进行文件加密的正确位置在哪里?
我正在创建 Rijndael 文件加密应用程序。我将为每个文件加密使用唯一的 IV。
我的问题:嵌入 IV 信息的正确位置在哪里?
我最初的想法是将其附加在文件内容的末尾。这是一个好的选择吗?对我来说还有其他更好的选择吗?
I'm creating a Rijndael file encryption application. I will using a unique IV for each file encryption.
My question: Where is the proper place to embed the IV info?
My initial thought is to append it at the end of the file's content. Is that a good choice? Any other better option for me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在文件的开头更有意义(读者在阅读其余部分之前需要它)。
但是,是的,您可以安全地将其添加到输出中。 IV(也许还有盐)并不是秘密。
At the beginning of the file makes more sense (the reader will need it before reading the rest).
But yes, you can safey add it to the output. The IV (and maybe a Salt) is not a secret.