开发者

Where is the proper location to embed IV information for file encryption using Rijndael algorithm?

I'm creating a Rijndael file encryption app开发者_JAVA技巧lication. 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜