Update broken_crypto.py to AES instead of Blowfish

This commit is contained in:
Faten Healy
2020-09-13 21:07:28 +10:00
committed by GitHub
parent 826fc0a630
commit 6f20516f84

View File

@@ -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