Formatting Conventions#

Before studying any encryption methods, it will be helpful to understand the formatting conventions that will be used in the course. Plaintext will be typed in lowercase monospaced letters, ciphertext will be typed in UPPERCASE MONOSPACED LETTERS, and keys will be typed in UPPERCASE MONOSPACE ITALICS.

Text Type

Formatting

Plaintext

the urge to discover secrets

Key

3

Ciphertext

WKH XUJH WR GLVFRYHU VHFUHWV

Monospaced fonts keep text spaced uniformly so characters on adjacent lines are aligned. Uniform spacing and text alignment are helpful when looking for patterns in ciphertext. Programming environments use monospaced fonts to keep your computer code tidy and make it easy to reference rows and character positions in the code.

Some common Monospaced fonts on your computer are: Courier New, Source Code Pro, Monaco, and Menlo.


Blocking Text#

You may have noticed in the opening activity that knowing the number of letters in each word was incredibly valuable when analyzing ciphertext. The sender of a message can improve the security of encrypted text by grouping letters into blocks of 5. The result is a ciphertext that removes information about the length of the words. Blocking text is standard practice for ciphers in this course. Notice that blocking text requires the recipient to correctly space out the message after decryption. Fortunately, it is fairly easy to identify words in plaintext and insert spaces as needed.

For Example:

Text Type

Formatting

Plaintext

the urge to discover secrets

Ciphertext

WKH XUJH WR GLVFRYHU VHFUHWV

Ciphertext (blocked)

WKHXU JHWRG LVFRY HUVHF UHWV

Deciphered Plaintext (blocked)

theur getod iscov ersec rets