From 9ac5877ca06d5674e69b6549dcfa5ce8f000494e Mon Sep 17 00:00:00 2001 From: Bill Buchanan Date: Fri, 19 Feb 2021 07:45:03 +0000 Subject: [PATCH] Update sample_ans.md --- unit04_public_key/lab/sample_ans.md | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/unit04_public_key/lab/sample_ans.md b/unit04_public_key/lab/sample_ans.md index e215186..428734c 100644 --- a/unit04_public_key/lab/sample_ans.md +++ b/unit04_public_key/lab/sample_ans.md @@ -505,35 +505,38 @@ print(message.decode('utf8')) A sample run gives: -
+```
 PublicKey(7044152640361902500168576401792350494310726185372977704588682647070501920385795486653093710793158373161949147824992313215786223524754692116109993477603703, 
 65537)
 PrivateKey(7044152640361902500168576401792350494310726185372977704588682647070501920385795486653093710793158373161949147824992313215786223524754692116109993477603703, 
 65537, 1031520101462581111343482730793310461173078401529280666355457029829494893917496934907266419334856470211959662572029962392609614789178286814805200163248601, 
 7009636621105341733056641551350073875772161289792261672243040042003271353299512989, 1004924081107519375914073833480034561474534624800691686376057520755477027)
 Here is my message
-
+``` + The keys are (e,N) for the public key, and (d,N) for the private key. In this case the value of N is: -
+
+```
 7044152640361902500168576401792350494310726185372977704588682647070501920385795486653093710793158373161949147824992313215786223524754692116109993477603703
-
+``` + And e is: -
+```
 65537
-
+``` For the decryption key, N is the same value as the encryption key, and d is: -
+```
 1031520101462581111343482730793310461173078401529280666355457029829494893917496934907266419334856470211959662572029962392609614789178286814805200163248601
-
+``` The two prime numbers used (p and q) are then: -
+```
 7009636621105341733056641551350073875772161289792261672243040042003271353299512989 1004924081107519375914073833480034561474534624800691686376057520755477027
-
+``` Sample: -
+```
 >>> 7009636621105341733056641551350073875772161289792261672243040042003271353299512989*1004924081107519375914073833480034561474534624800691686376057520755477027 
 7044152640361902500168576401792350494310726185372977704588682647070501920385795486653093710793158373161949147824992313215786223524754692116109993477603703L
-
+``` ## E.3