This commit is contained in:
mdecker62
2026-04-02 10:03:44 -04:00
parent 8d74201035
commit fae74250a9

View File

@@ -5,6 +5,23 @@
Decrypt the message you received from the Sub Rosa administrator.
Include the code you used to decrypt it. What does the message say?
I attempted to retrieve and decrypt the message from the Sub Rosa administrator using my generated private key. However, the Sub Rosa server did not respond to requests and returned a connection timeout error, so I was unable to obtain the encrypted message.
The code I would use to decrypt the message is shown below:
```python
from encryption import PrivateKey
private = PrivateKey.load("subrosa_private_key.pem")
ciphertext = "<ciphertext from server>"
print(private.decrypt(ciphertext))
```
If the server had returned the message successfully, this code would decrypt the ciphertext using my private key and display the original plaintext message.
## Checkpoint 2
Once you have a fully-working client and server for encrypted chat, let's