Skip to content

Commit f60bb67

Browse files
authored
Non-alphabetic encryption
1 parent 83ec89e commit f60bb67

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

assign1/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,15 @@ These functions take two arguments, a message to encrypt (or decrypt) and a keyw
143143
Notes:
144144

145145
- You can assume that all characters in the plaintext, ciphertext, and keyword will be alphabetic (i.e no spaces, numbers, or punctuation).
146-
- However, the text of `not_a_secret_message.txt` contains spaces, numbers, and punctuation, so if you want to decrypt that, you'll need to write code that handles non-alphabetic characters. You can ignore these characters entirely for the purpose of encryption and decryption.
146+
- However, the text of `not_a_secret_message.txt` contains spaces, numbers, and punctuation, so if you want to decrypt that, you'll need to write code that handles non-alphabetic characters. Non-alphabetic characters will not be encrypted, and do not use up any of the characters from the key. For example:
147+
148+
```
149+
ATTACK AT DAWN!
150+
+ LEMONL EM ONLE
151+
-----------------
152+
LXFOPV EF RNHR!
153+
```
154+
147155
- You can assume that all of the characters will be provided in uppercase.
148156
- You can assume that keyword will have at least one letter in it.
149157

0 commit comments

Comments
 (0)