Cryptography exam prep study guide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/267

encourage image

There's no tags or description

Looks like no tags are added yet.

268 Terms

1
New cards

The study and practice of securing communication through encoding.

Cryptography

2
New cards

What type of key is used to compute a MAC?

symmetric

3
New cards

? secure encryption algorithm property that ensures that changing a single bit of an encryption key impacts most of the ciphertext bits. The ? property hides the relationship between a ciphertext and the encryption key

confusion

4
New cards

? is a secure encryption algorithm property that ensures that changing a single plaintext bit changes about half of the ciphertext bits and changing a single ciphertext bit changes about half of the plaintext bits. The ? property hides the relationship between a plaintext and a ciphertext.

diffusion

5
New cards

the original readable message

plaintext

6
New cards

the encrypted (unreadable) message

ciphertext

7
New cards

converting plaintext > ciphertext using an algorithm and a key

encryption

8
New cards

converting ciphertext > plaintext using the key

decryption

9
New cards

the mathematical function used for encryption/decryption

algorithm (cipher)

10
New cards

the secret value that controls encryption/decryption

key

11
New cards

keeps data secret , ex : AES encryption

confidentiality

12
New cards

prevents undetected changes , ex: hashing, HMAC

integrity

13
New cards

keeps data accessible, ex : redundancy, backups

availability

14
New cards

verifies identity, ex : digital certificates, kerberos

authentication

15
New cards

prevents denial of actions, Ex : digital signatures

nonrepudiation

16
New cards

What are three Asymmetric ( public key ) algorithms ?

RSA, EIGamal, ECC

17
New cards

This asymmetric algorithm is computationally efficient because it uses smaller key sizes.

  • ideal for use in battery powered IoT devices


ECC

18
New cards

Which asymmetric encryption algorithm should not be used in a device with limited memory?

EIGamal

19
New cards

Which asymmetric encryption algorithm can provide a high level of security with a small key size?

ECC

20
New cards

CIA stands for ?

confidentiality, integrity, and availability

21
New cards

what are the three types of cryptography

symmetric, assymetric, hashing

22
New cards

this type of cryptography, same key for encryption and decryption, shared secret

ex : AES , DEs, 3DES, blowfish

symmetric

23
New cards

this type of cryptography , key pair : public and private , mathematically related, ex: RSA, ECC, Diffie-Hellman



asymmetric

24
New cards

RSA, Diffie-hellman, ECC are examples of ?-key cryptography

public

25
New cards

this type of cryptography, one way mathematical function, no key, ex : SHA-256, SHA-3, MD5

Hashing

26
New cards

try every key until one works

brute force

27
New cards

looks for patterns in ciphertext ( used on classical ciphers)

frequency analysis

28
New cards

attacker knows or chooses plaintext and compares ciphertext

known plaintext / chosen plaintext

29
New cards

exploit physical characteristics ( timing, power use )

side-channel attacks

30
New cards

targets hash collisions

birthday attack

31
New cards

algorithm for encryption/decryption

cipher

32
New cards

all possible keys. larger=more secure

keyspace

33
New cards

measure of randomness

entropy

34
New cards

adds ransomness to encryption

initialization vector (IV)

35
New cards

random data added to a password before hashing

salt

36
New cards

this substitution cipher …

  • simple shift , A>D , key=shift number


caesar

37
New cards

this substitution cipher….

reverse alphabet , a<>z , fixed substitution

atbash

38
New cards

substitution cipher , polyalphabetic, keyword , resists frequency analysis

vigenere

39
New cards

substitution cipher, digraph substitution, 5×5 grid , replaces letter pairs

playfair

40
New cards

substitution cipher, matrix-based, linear algebra, requires invertible key matrix

hill cipher

41
New cards

substitution cipher, mechanical polyalphabetic , WWII german cipher, used rotors and plugboard

Enigma

42
New cards

this type of cipher rearranges letters instead of replacing them

transposition ciphers

43
New cards

transposition cipher, zigzag pattern across rows

rail fence cipher

44
New cards

transposition cipher , write in columns, read by key order

columnar transposition

45
New cards

transposition cipher, ancient greek wrapping stick

scytale cipher

46
New cards

replace =

substitution

47
New cards

rearrange =

transposition

48
New cards

data formatting for transmission/storage , reversible, example : Base64, ASCII, UTF8

Encoding

49
New cards

data protection from unauthorized access , reversible with key, example : AES , RSA

Encryption

50
New cards

data integrity verification , not reversible, example : SHA-256, MD5

Hashing

51
New cards

? is often used for representing keys, hashes and ciphertext

hexadecimal

52
New cards

this number system is human readable

decimal

53
New cards

this number system is compact byte representation, 0×2A, base 16

hexadecimal

54
New cards

this number system is used in older computing formats, example : 052, base 8

octal

55
New cards

Value that “undoes” multiplication mod n , key to RSA’s private key math

modular inverse

56
New cards

Remainder after division

17 mod 5 = 2

Modulo (mod)

57
New cards

Divisible only by 1 and itself

Used in RSA, DH

Prime Numbers

58
New cards

Numbers with no shared factors

Needed for key generation

Relatively Prime

59
New cards

Largest shared divisor

gcd(9, 12) = 3

Greatest Common Divisor (GCD)

60
New cards

Converts binary data to ASCII text.

Base64

61
New cards

Represents text using numeric codes

ASCII

62
New cards

This encoding scheme , Supports all characters

Unicode/UTF-8

63
New cards

Commonly used in digital certificates and hashes.

Hex

64
New cards

? is often used for representing keys , hashes, and ciphertext

hexadecimal

65
New cards

Which classic cipher is this ?

Method: Shift each letter by a fixed number (the key).

Example: Key = 3 → A→D, B→E, etc.

Keyspace: 26 possible keys if using the English alphabet.

Attack: Brute force or frequency analysis.

Weakness: Small keyspace, predictable letter patterns.

simple substitution , caesar cipher

66
New cards

Which classic cipher is this ?

•Method: Write plaintext into a grid → permute rows and columns.

•Key: Row and column order (permutations).

•Strength: Scrambles text structure, disperses statistical info.

•Weakness: Letters themselves unchanged (frequency preserved).

•Modern Connection: Concept of diffusion used in block ciphers.

Double Transposition Cipher

67
New cards

Which classic cipher is this ?

•Method: XOR plaintext bits with a random key of equal length.

•Security: Provably unbreakable if key is random, secret, and used once.

•Drawback: Impractical key distribution (pad must be as long as message).

•Modern Connection: Basis for stream cipher design.

One-Time Pad (Vernam Cipher)

68
New cards

Convert plaintext → ciphertext.

Encryption

69
New cards

Convert ciphertext → plaintext

Decryption

70
New cards

Algorithm used for encryption/decryption

Cipher

71
New cards

Secret value used by cipher

Key

72
New cards

All possible key combinations , larger = more secure

Keyspace

73
New cards

Strengthens weak keys by increasing complexity

Key Stretching

74
New cards

what are the 3 properties of a secure cipher

confusion , diffusion, kerckhoffs’s principle

75
New cards

Changes in key → large changes in ciphertext (hides key relationship).

confusion

76
New cards

Changes in plaintext → large changes in ciphertext (hides structure)

Diffusion

77
New cards

Security must depend on the secrecy of the key, not the algorithm

Kerckhoffs’s Principle

78
New cards

what are the two symmetric crytography ciphers ?

stream & block

79
New cards

this type of symmetric cipher …..

encrypts data bit-by-bit or byte-by-byte using a keystream

modeled after one-time pad ( but with shorter, stretched keys)

strengths : fast, efficient for streaming data

weaknesses : key reuse leads to severe vulnerabilities

stream cipher

80
New cards

what are 2 examples of symmetric stream ciphers

A5/1 (GSM) , RC4 (SSL/WEP)

81
New cards

this type of symmetric cipher ….

  • encrypted fixed-size blocks ( 64 bit and 128 bit )

  • requires padding if plaintext not a multiple of block size

    • used in hash functions, MACs, and encryption modes


block cipher

82
New cards

what are 5 example algorithms for block cipher?

DES, 3DES, AES, IDEA, TEA

83
New cards

what are the 5 modes of block cipher operation?

ECB, CBC, CFB, OFB, CTR

84
New cards

The process of adding bits to a plaintext's last block is called ?

padding

85
New cards

The ? is a block cipher which encrypts a plaintext 64-bit block at a time

IDEA

86
New cards

Block Cipher Modes of Operation…..

Encrypts each block separately

NO error propagation

Identical plaintext → identical ciphertext; least secure


Electronic code book ( ECB )

87
New cards

Block Cipher Modes of Operation…..

XORs each plaintext block with previous ciphertext block, computationally chained together

Error propagates : YES

Uses IV( randomly generated sequence of bits of equal size )


Each plaintext block is XORed with the previous ciphertext block before being encrypted.

cipher block chaining ( CBC )

88
New cards

Block Cipher Modes of Operation…..

Treats block cipher as stream cipher

XOR with previous ciphertext

error propagation : YES

encryption and decryption same process, IV used in the first plaintext block and ciphertext blocks are computationally chained together


Each plaintext block is encrypted and XORed with the previous ciphertext block.

CFB ( cipher feedback )

89
New cards

Block Cipher Modes of Operation…..

Uses keystream XOR; independent of ciphertext

error propagation : NO


Each block is created independently of plaintext and ciphertext blocks

OFB ( output feedback )

90
New cards

Block Cipher Modes of Operation…..

Uses counter + nonce; XOR with plaintext

Error propagation : NO

Parallelizable; common in modern use


A ciphertext block depends on the position of the current plaintext block

Counter ( CTR )

91
New cards

what are the 3 major block ciphers

DES , 3DES, and AES

92
New cards

this block cipher ….

•Block size: 64 bits

•Key size: 56 bits

•Weakness: Small key size → brute-force possible.

DES

93
New cards

this block cipher ….

•Process: DES applied 3 times.

Triple DES (3DES)

94
New cards

3DES : option ? 3 independent keys (168-bit) > most secure

option 1

95
New cards

3DES : option ? 2 keys (112-bit)

2

96
New cards

3DES : option ? 1 key (same as DES) → least secure

option 3

97
New cards

this symmetric block cipher ….

•Used in: VPNs, Wi-Fi, HTTPS, disk encryption.

•Properties: Fast, strong confusion/diffusion, resists modern attacks.

  • most widely used block cipher


AES

98
New cards

Why is AES-192 more secure than AES-128?

bc 192 has a larger key space

99
New cards

What are the 3 versions of AES ?

128 . 192. 256

100
New cards

All versions of AES have ? bits as their block size

128 bits