Skip to content

Commit 2988301

Browse files
authored
Mention that the replacement letter can match the original letter.
1 parent 44486e1 commit 2988301

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exercises/simple-cipher/description.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ A cipher is an algorithm used to encrypt, or encode, a string.
99
The unencrypted string is called the _plaintext_ and the encrypted string is called the _ciphertext_.
1010
Converting plaintext to ciphertext is called _encoding_ while the reverse is called _decoding_.
1111

12-
In a _substitution cipher_, each letter is replaced with a different letter which is computed with the help of a _key_.
12+
In a _substitution cipher_, each plaintext letter is replaced with a ciphertext letter which is computed with the help of a _key_.
13+
(Note, it is possible for replacement letter to be the same as the original letter!
14+
As mentioned earlier, an `"a"` in the key means there is no shift/change.)
1315

1416
## Encoding details
1517

0 commit comments

Comments
 (0)