Lecture Notes Flashcards

1
Q

What is a cipher?

A

A pair of functions (Encryption & Decryption) that satisfy the consistency equation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the consistency equation?

A

It is where you pass the plaintext into a function, you have some form of key that you plan
to use for the encryption, and out the other side should come the ciphertext. Then the converse
has to work as well, whereby you pass the ciphertext into a function, then key is used to perform
the decryption and out comes the plaintext.

P = plaintext
K = key
C = ciphertext
E = encryption

Algorithm = C = E(k,p)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a substitution cipher?

A

It is a method of encyption. Units of plaintext are replaced by ciphertext in a defined manner with the help
of a key. The letters are changed, but the position does not change.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name three types of substitution ciphers

A
  1. Monoalphabetic
  2. Polyalphabetic
  3. Polygraphic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a mono-alphabetic substitution cipher?

A

It uses a simple 1 to 1 mapping. It uses a fixed key which consists of 26 letters of a shuffled alphabet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Polyalphabetic cipher?

A

A polyalphabetic cipher substitution, using multiple substitution alphabets. The Vigenère cipher is probably the best-known example of a polyalphabetic cipher, though it is a simplified special case.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a transpositional cipher?

A

No substitution takes place. Ciphertext is an anagram of the original message.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name two types of transpositional cipher

A
  1. Rail Fence
  2. Columnar Transposition Cipher
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

List five types of substitution ciphers

A
  1. Rotational
  2. Symbol substitution
  3. Homophonic
  4. Polyalphabetic
  5. Polygraphic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Rot13 is an example of what type of substitution cipher

A

Rotational / shift cipher

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Pigpen is an example of what type of substitution cipher

A

Symbol substitution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Zodiac killer is an example of what type of substitution cipher

A

Homophonic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Vigenere is an example of what type of substitution cipher

A

Polyalphabetic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Playfair is an example of what type of substitution cipher

A

Polygraphic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is frequency analysis in cryptography

A

It is the study of the frequency of letters or groups of letters in a ciphertext

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Name three fundamentals elements that must be present for a one-time pad

A
  1. The key must be truly random
  2. The key must never be reused
  3. The key must be the same size as the message being sent.
17
Q

Is a Pseudo Random Number Generator (PRNG) suitable for one-time pads?

A

No - as the number will repeat after a given period.

18
Q

True random number generators are used for what purposes?

A

Cryptography, lotteries, and games

19
Q

Name the two types of encryption

A

Secret-key encryption
Public-key encryption

20
Q

Describe the attributes of secret-key encryption

A

Uses the same key for encryption and decryption, otherwise known as symmetric encryption

21
Q

Describe the attributes of public key encryption

A

Uses different keys for encryption and decryption, otherwise known as asymmetric encryption