diff --git a/subrosa_analysis.md b/subrosa_analysis.md index 700e654..b52e6b9 100644 --- a/subrosa_analysis.md +++ b/subrosa_analysis.md @@ -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 = "" + +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