2 - Cypto Key Concepts Flashcards

1
Q

What is a cipher?

A

A method to encrypt text.

Usually translates text into symbols, or a function of the alphabet.

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

What is the problem with sending an unprotected message?

A

It can be read by anyone who can intercept it

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

How can you protect a message?

A

Encypt its contents

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

What two types of cyptography are used today?

A

Symmetric and Asymmetric

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

What is symmetric cryptography?

A

Using a pair of keys to encrypt and then decrypt a message

plaintext -> encypt(plaintext, key) -> cipher text -> decypt(ciphertext, key) -> plaintext

w -> * -> w

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

What are some examples of symmetric cryptography?

A

Substitution and transposition ciphers

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

What are some substitution ciphers?

A

Monoalphabetic e.g. Caesar cipher

Polyalphabetic e.g. Vingere cipher

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

What is a transposition cipher?

A

Rail fence cipher

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

What is a Caesar cipher?

A

Letters are shifted along in the alphabet to encrypt
Shifted back the same amount to decrypt

Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ

Cipher: DEFGHIJKLMNOPQRSTUVWXYZABC

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

What is a Vigenere cipher?

A

Encypts text by using a series of different Caesar ciphers based on the letters of a keyword.

In a grid, same letter won’t be used for same subsitution

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

What is a rail fence cipher?

A

Places plaintext in a zigzag along imaginary rails.

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

What is a column cipher?

A

Message is written out in rows of a fixed length

Then read out again column by column, and the columns are chosen in some scrambled order (cipher text)

Both the width of the rows and the permutation of the columns are usually defined by a keyword.

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

What is a stream?

A

Caesar and Vigenere are streams

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

What is a block?

A

Used for DES, AES

0110111001010011

0110 1110 0101 0011

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

Block ciphers

A

Translate between plain and cipher text using a key and applying a logic gate to key and block, e.g. XOR

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

What are the main ideas in cryptography?

A

Substitution

Transposition

Bitwise operations e.g. XOR

17
Q

What is the problem with cryptography?

A

If you know how e.g. Caesar, rail road works, you can decrypt a message

18
Q

What is a solution to a problem in cryptography?

A

Use blocks with a key

19
Q

What is DES?

A

64 bit blocks (56 bit key + 8 bit check)

Check bits not used by DES
Used to detect errors

20
Q

What is AES?

A

128bit plain text

128, 192 or 256 bit key

21
Q

What is a One Time Pad (OTP)?

A

Plaintext combined with truly random key

Key is used only once, destroyed after

22
Q

What are some rules for One Time Pad?

A

Key is as long as plain text

Key is truly random

Each key used only once

Should be two copies of the key: one for sender and one for receiver

23
Q

What does pseudo random mean?

A

Not truly random

Calculated based on a seed