AES vs Blowfish for file encryption

后端 未结 7 1026
执念已碎
执念已碎 2021-01-30 02:34

I want to encrypt a binary file. My goal is that to prevent anyone to read the file who doesn\'t have the password.

Which is the better solution, AES or Blowfish with th

7条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 03:36

    The algorithm choice probably doesn't matter that much. I'd use AES since it's been better researched. What's much more important is choosing the right operation mode and key derivation function.

    You might want to take a look at the TrueCrypt format specification for inspiration if you want fast random access. If you don't need random access than XTS isn't the optimal mode, since it has weaknesses other modes don't. And you might want to add some kind of integrity check(or message authentication code) too.

提交回复
热议问题