Advanced Topics in Mathematics
LINKS TO: 

Encryption and Cryptography

image of lock over 1s and 0s

In the past, the science of Cryptography was applied only in secret chambers and utilized by governments and spies.

Today, encryption systems are everywhere around us, from the Automatic Teller Machine to transactions on the internet


In the Advanced Topics class discussion of Number Theory, we discuss the history of encryption systems and work our way up to modern cryptographic methods that utilize prime numbers and elliptic curves.



Some terminology:
key: the method used to encrypt and decrypt messages

plaintext: plain, unencrypted text
ciphertext: encrypted text
plaintext alphabet: the regular ABC...XYZ alphabet
ciphertext alphabet: a rearranged alphabet that can be written under the plaintext alphabet to aid in encrypting and decrypting messages
cryptography: the science of encrypting information
cryptanalysis : methods of deciphering encrypted information without knowledge of the key (this is a combination of a science and an art and involves a multitude of computer-based analyses of ciphertext messages)
cryptology the field comprised of both cryptography and cryptanalysis (most governments must do both of these)


The types of encryption discussed in the Advanced Topics class are:

Substitution Ciphers

Substitution ciphers methodically replace each letter of the alphabet with a new letter.
EXAMPLES:
A Caesar code wheel that can be dialed up to represent any of the 25 Caesar shifts:

Caesar Code wheel

Transposition Ciphers

Transposition ciphers transpose, or shuffle, the letters in a message to encode the message. Hist nca eb a yvre fefciteve yaw ot tpyrcne

An image of a scytale cipher with a message ready to be encrypted by unraveling:

a wooden scytale, used for transposition ciphering

Steganography

Steganography involves hiding a message within another message so that it is not obvious that there is anything hidden.
An image that shows 1's and 0's hidden by Digital Steganography within the color values of individual pixels:
(the man shown is Simon Singh, author of The Code Book, which is highly recommended reading)
numbers hidden under a digital image

Public Key Cryptography

an elliptic curve



To get a taste of the types of encryption, here are some explanations:

EXAMPLE: Keyword Substitution Cipher:

A keyword of any length is chosen. The keyword could be a given word or sentence in a book agreed upon ahead of time. For example, it could be agreed that the next pair of words from the Chapter 5 of A Tale of Two Cities would be used for each new message.

Under the plaintext alphabet (the alphabet in it's usual order), write out all the letters of the keyword without repeats.

Let's say you've chosen It was the best of as your keyword phrase:

plaintext:  ABCDEFGHIJKLMNOPQRSTUVWXYZ
ciphertext: ITWASHEBOFG...

Now continue the alphabet, from the last letter written underneath the ciphertext (again, without repeating):

plaintext:  ABCDEFGHIJKLMNOPQRSTUVWXYZ
ciphertext: ITWASHEBOFGJKLMNPQRUVXYZCD

Encode the message by looking up the plaintext letters and finding the corresponding ciphertext letters. Decode by reversing the process.


The following does a good job of summarizing some steganography techniques: