3. Cryptography: introduction Flashcards

1
Q

What is the shared secret for rail fence cipher?

A

k (natural number)

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

How do you encrypt with rail fence cipher?

A

Write plain text in columns of size k, ciphertext is the concatenation of resulting rows

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

How do you decrypt with rail fence cipher?

A

Write ciphertexy in rows if size |c| / k

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

Why is rail fence cipher weak?

A

Very small key space (k < |c|)

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

What is the shared secret for substitution cipher?

A

Mapping of characters to new characters

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

How do you encrypt with substitution cipher?

A

Apply substitution function to each character of plaintext

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

How do you decrypt with substitution cipher?

A

Apply the inverse substitution function to each character of the ciphertext

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

Why is substitution cipher weak?

A

Vunerable to frequency analysis (e, th, the)

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

What is the shared secret for vigenere cipher?

A

Word w over the English alphabet

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

How do you encrypt with vigenere cipher?

A

break plaintext into |w| sized blocks, add w to each block (mod 26), concatenate resulting blocks

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

How do you decrypt with vigenere cipher?

A

break ciphertext into |w| sized blocks, subtract w from each block (mod 26), concatenate resulting blocks

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

Why is vigenere cipher weak?

A

Weak to frequency analysis (every |w| character has the same offset)

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