开发者

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

开发者 https://www.devze.com 2023-04-09 16:12 出处:网络
I\'m creating a Rijndael file encryption app开发者_JAVA技巧lication. I will using a unique IV for each file encryption.

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

精彩评论

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