-
Notifications
You must be signed in to change notification settings - Fork 332
Open
Description
EncryptedType uses AES in CBC mode. The IV that it uses is not random though.
https://github.com/kvesteri/sqlalchemy-utils/blob/master/sqlalchemy_utils/types/encrypted.py#L56
Given a single key, it will use the SHA256 hash of that key for all encryption. It looks like it will use the first 16 bytes of that hash as the IV for each operation.
This link is a good primer on why this is bad: http://security.stackexchange.com/a/1097
Metadata
Metadata
Assignees
Labels
No labels