From a472679ce82c94b19e5665bd66a6df533ec343da Mon Sep 17 00:00:00 2001 From: Bill Buchanan Date: Thu, 25 Feb 2021 14:31:32 +0000 Subject: [PATCH] Update README.md --- unit04_public_key/lab/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit04_public_key/lab/README.md b/unit04_public_key/lab/README.md index 47534fe..a5cf2f1 100644 --- a/unit04_public_key/lab/README.md +++ b/unit04_public_key/lab/README.md @@ -533,10 +533,11 @@ A simple RSA program to encrypt and decrypt with RSA is given next. Prove its op ```python import rsa (bob_pub, bob_priv) = rsa.newkeys(512) -ciphertext = rsa.encrypt('Here is my message', bob_pub) +ciphertext = rsa.encrypt('Here is my message'.encode(), bob_pub) message = rsa.decrypt(ciphertext, bob_priv) print(message.decode('utf8')) ``` +A sample [here](https://repl.it/@billbuchanan/rsanew01#main.py) ## F PGP ### F.1