CERT-W / certitude

The Seeker of IOC
GNU General Public License v2.0
129 stars 28 forks source link

Use a true KDF for AES #4

Closed fschwebel closed 8 years ago

fschwebel commented 8 years ago

In certitude/helpers/crypto.py, it is said Create an AES key from text (password); Padding is used as a countermeasure to SHA2 rainbow tables Padding before applying a SHA2 is not a secure KDF, see https://crypto.stackexchange.com/questions/9345/whats-the-most-secure-way-to-derive-a-key-from-a-password-repeatably Furthermore, the use of an authenticated encryption mode seems to be preferable since the attacker would have a decryption oracle, see http://blog.cryptographyengineering.com/2012/05/how-to-choose-authenticated-encryption.html.