Basic Cryptography Flashcards
What is cryptography?
refers to the art and science of concealing meaning
What is a cryptosystem?
a system where a sender/transmitter transforms all unconcealed data (plaintext) into concealed data called ciphertext using an encryption algorithm
The receiver then transforms the received ciphertext back to the plaintext using a decryption algorithm
What is a cipher?
encryption and decryption algorithms
What are the two broad types of cryptosystems?
Private key and public key
What is the encrypt function
EM = E(K, M)
What is the decrypt algorithm
M = D(K, EM)
What is “Simple Division by Key”
The secret key is a number, each letter is assigned a numbered value and then encoded by dividing that number by the key. The letter is then the quotient and the remainder (2 digits)
What are the two types of historical cryptosystems?
Substitution ciphers (value of plaintext is replaced), and Transposition ciphers (position of plaintext alphabet are changed without changing their values)
What are the two types of substitution ciphers?
Monoalphabetic and Polyalphabetic
What is the beale cipher
a polyalphabetic substitution cipher.
The key is a string of letters, the plaintext is written under the key, each plaintext character is shifted by value
What is the vigenere cipher
The key is represented by a string of letters. Each key letter represents a certain shift of the plaintext character.
Find the PT letter row and the Key letter column to find the CT character
What is the digraphic substitution cipher
Create a 5x5 table. Begin to fill the table with the key, then the rest of the alphabet excluding the letters that exist in the key.
Divide the PT into groups of two characters.
Find a rectangle that contains each group, switch the corner characters to get the CT.
If there are only two characters in the same row, wrap the row left to right. If there are only two characters in the same column wrap to the next character in the column
What is a rail fence cipher?
write the plaintext in 2 rows. Then write the cipher text out by writing the first row and then the second
What is the matrix cipher?
Write the plaintext in a matrix of n columns rowwise.
Create a key and use it to determine the order and write the CT by taking the columns in the order dictated by the key.
What was the Enigma Machine?
A polyalphabetic substitution cipher. It used a machine with mechanical rotors that changed the electronic circuitry for ciphering.