mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Update broken_crypto.py to AES instead of Blowfish
This commit is contained in:
@@ -6,7 +6,7 @@ def send_encrypted(channel, message):
|
||||
channel.send(cipher.encrypt(message)) # BAD: weak encryption
|
||||
|
||||
|
||||
cipher = Blowfish.new(SECRET_KEY)
|
||||
cipher = AES.new(SECRET_KEY)
|
||||
|
||||
def send_encrypted(channel, message):
|
||||
channel.send(cipher.encrypt(message)) # GOOD: strong encryption
|
||||
|
||||
Reference in New Issue
Block a user