updated readme and added some new prints to part 1 / 2

This commit is contained in:
JISAUAY committed 2025-09-23 13:26:56 -05:00
1 parent 7baca9ed2f
commit 253a2f62ac
5 files changed
+36

No files matched your search

+2
View File
@@ -26,6 +26,8 @@ cipher = AES.new(aes_key, AES.MODE_CBC, iv=b'0'*16)
ciphertext = cipher.encrypt(plaintext)
print(f'Ciphertext: {ciphertext}')
with open('ctext', 'wb') as f:
f.write(ciphertext)
+2
View File
@@ -12,6 +12,8 @@ cipher = AES.new(aes_key, AES.MODE_CBC, iv=b'0'*16)
with open('ctext', 'rb') as f:
ciphertext = f.read()
print(f'Ciphertext: {ciphertext}')
plaintext = unpad(cipher.decrypt(ciphertext), 16).decode()
print(f'Plaintext: {plaintext}')