Skip to content

Commit 6f20516

Browse files
authored
Update broken_crypto.py to AES instead of Blowfish
1 parent 826fc0a commit 6f20516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Security/CWE-327/examples/broken_crypto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def send_encrypted(channel, message):
66
channel.send(cipher.encrypt(message)) # BAD: weak encryption
77

88

9-
cipher = Blowfish.new(SECRET_KEY)
9+
cipher = AES.new(SECRET_KEY)
1010

1111
def send_encrypted(channel, message):
1212
channel.send(cipher.encrypt(message)) # GOOD: strong encryption

0 commit comments

Comments
 (0)