|
@@ -203,17 +203,16 @@ In this exercise you will modify the code for the cypher function from Exercise
|
203
|
203
|
|
204
|
204
|
---
|
205
|
205
|
|
206
|
|
-| cleartext | P | R | @ | G | R | * | M | | T | 8 | I | S |
|
207
|
|
-|-----------------|---|---|---|---|---|---|---|---|---|---|---|---|
|
208
|
|
-| keyword | S | H | O | R | T | S | H | O | R | T | S | H |
|
209
|
|
-| ciphered text | H | Y | @ | X | K | * | T | | K | 8 | A | Z |
|
|
206
|
+ | cleartext | P | R | @ | G | R | * | M | | T | 8 | I | S |
|
|
207
|
+ |-----------------|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
208
|
+ | keyword | S | H | O | R | T | S | H | O | R | T | S | H |
|
|
209
|
+ | ciphered text | H | Y | @ | X | K | * | T | | K | 8 | A | Z |
|
210
|
210
|
|
211
|
211
|
|
212
|
212
|
**Figure 7.** Example Vignere cipher of the cleartext `“PR@GR*M T8IS”` using the keyword `SHORT”`.
|
213
|
213
|
|
214
|
214
|
---
|
215
|
215
|
|
216
|
|
-
|
217
|
216
|
2. After you implement the `cypher` function, modify the `main` function so that the line that invokes `test_cypher2` is uncommented, and the line that invokes `test_cyper1` is commented. Once again, you will not see the app’s graphical user interface until the `test_cypher2` verifications.
|
218
|
217
|
|
219
|
218
|
---
|