summaryrefslogtreecommitdiff
path: root/assignments/3-solution.md
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-01-22 11:36:48 -0700
committermo khan <mo@mokhan.ca>2025-01-22 11:36:48 -0700
commit88e3091bb0a5aa5067a83348ca3c3cf8522bde98 (patch)
tree2c8c7d71cc0dee60f0fd6c7b7f083472261cd89c /assignments/3-solution.md
parent65518624a3fc91b0b061dfbe62aa15a0890346c3 (diff)
Finish assignment 3
Diffstat (limited to 'assignments/3-solution.md')
-rw-r--r--assignments/3-solution.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/assignments/3-solution.md b/assignments/3-solution.md
index 843ff0a..eb3e5c0 100644
--- a/assignments/3-solution.md
+++ b/assignments/3-solution.md
@@ -87,3 +87,20 @@ Chapter 7:
```
Chapter 8:
+
+> 9. Using a Caesar cipher with s = 5, decode the received message RTAJ TZY FY IF
+
+```plaintext
+| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
+
+Key: s = 5
+
+| F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | A | B | C | D | E |
+
+| Ciphertext | RTAJ TZY FY IFBS |
+| Plaintext | RTAJ TZY FY IF |
+```
+
+```ruby
+!include assignments/3/caesar.rb
+```