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
@@ -14,6 +14,8 @@ cipher = PKCS1_OAEP.new(public_key)
# Encrypt the message
ciphertext = cipher.encrypt(message)
print(f'Ciphertext: {ciphertext}')
# Write the ciphertext
with open("ctext", "wb") as f:
f.write(ciphertext)
+2
View File
@@ -31,6 +31,8 @@ with open("bob_private.pem", "rb") as f:
with open("ctext", "rb") as f:
ciphertext = f.read()
print(f'Ciphertext: {ciphertext}')
cipher = PKCS1_OAEP.new(private_key)
# Decrypt