17: Advanced Ciphers Flashcards

1
Q

How does Vigenère cipher work ?

A

1) We find the distance from key at index i to ‘A’ (eg, 25)
2) We take k=distance (eg k=25)
3) We offset the input text’s letter at index i and offset it by k to the left, ala Caesar (eg A->B)
4) Repeat for next i

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

How does frequency analysis affect Vigenère ?

What weakness does it have ?

A

It doesn’t break it because it has different values of k everytime.

By finding repeated blocks, we can find the distance and determine the key length possibilities.

Eg, dist=16, then k length can only be 1,2,4,8, or 16.

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

What is Kasiki test for breaking ?

A

Break cipher into 4 string (for eg). Then use for frequency analysis.

Works if the secret key is short.

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

What happens if the secret key is as long as the input text ?

A

It is vulnerable to frequency analysis.

As we have to pass the secret key in secret, it makes encryption less practical.

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

What is a one-time pad ?

What’s special about it?

A

When the secret key is chosen at random, making all replacement letters random.

It is theoretically unbreakable.

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

What are the 2 types of encryption algorithms ?

A
  • Substitution

- Transposition

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

Give 5 examples of transposition ciphers ?

A
  • Zigzag/ Rail fence cipher
  • Route cipher
  • Columnar transposition
  • Double transposition
  • Disrupted transposition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly