AES Encryption - Key versus IV

后端 未结 4 790
甜味超标
甜味超标 2020-11-29 20:39

The application I am working on lets the user encrypt files. The files could be of any format (spreadsheet, document, presentation, etc.).

For the specified input fi

4条回答
  •  借酒劲吻你
    2020-11-29 21:41

    When you use an IV, the most important thing is that the IV should be as unique as possible, so in practice you should use a random IV. This means embedding it in your application is not an option. I would save the IV in the data file, as it does not harm security as long as the IV is random/unique.

提交回复
热议问题