AMS 103 IV: Data Security 🔐🪪

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

1/49

flashcard set

Earn XP

Description and Tags

"LAPD! LAPD SWAT! POLICE! GET ON THE GROUND! SHOW ME YOUR HANDS!"

Last updated 4:25 AM on 4/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

50 Terms

1
New cards

What is cryptography?

The science of secret writing, including methods for encryption and decryption.

2
New cards

Cipher

An algorithm for performing encryption or decryption.

3
New cards

Main goals of cryptography

Privacy, authentication, and tamper detection.

4
New cards

Kerckhoffs’ Principle

A system should remain secure even if everything except the key is public

5
New cards

Why security through obscurity is weak

If the method is discovered, the entire system fails.

6
New cards

Caesar cipher mechanism

Shifts each letter by a fixed number of positions.

7
New cards

Scytale cipher mechanism

Wrap text around a rod; unwrapped text appears scrambled.

8
New cards

Enigma machine key feature

Rotors change position after each keypress, altering the substitution.

9
New cards

Definition of modular arithmetic

Arithmetic where values wrap around a modulus n.

10
New cards

Meaning of a ≡ b (mod n)

a and b leave the same remainder when divided by n.

11
New cards

Compute 37 mod 12

1

12
New cards

Compute 1024 mod 7

2

13
New cards

Modular addition rule

(a + b) mod n = (a mod n + b mod n) mod n

14
New cards

Modular multiplication rule

(a · b) mod n = (a mod n · b mod n) mod n

15
New cards

Definition of gcd(a, b)

The largest integer dividing both a and b.

16
New cards

When are two numbers relatively prime?

When gcd(a, b) = 1.

17
New cards

Euclid’s Algorithm purpose

Computes gcd(a, b) by repeated remainder reduction.

18
New cards

Prime number definition

An integer >1 with no divisors except 1 and itself.

19
New cards

Fundamental Theorem of Arithmetic

Every integer >1 has a unique prime factorization.

20
New cards

Definition of modular exponentiation

Efficient computation of a^b mod n using repeated reduction.

21
New cards

Why modular exponentiation is used in cryptography

It keeps numbers small and avoids computing huge a^b directly.

22
New cards

Definition of discrete logarithm problem

Given g^x mod n, find x.

23
New cards

Why discrete logs are hard

No inverse formula; outputs appear random; must try many possibilities.

24
New cards

Why composite moduli fail for discrete logs

Values cycle early and do not spread uniformly.

25
New cards

Diffie–Hellman public values

g, n, g^a mod n, g^b mod n

26
New cards

Diffie–Hellman shared secret formula

k = g^{ab} mod n

27
New cards

Why Diffie–Hellman is secure

Recovering a or b requires solving a discrete logarithm.

28
New cards

RSA public key components

e and n

29
New cards

RSA private key components

d, p, q

30
New cards

RSA modulus definition

n = p × q

31
New cards

Euler totient for RSA

φ(n) = (p−1)(q−1)

32
New cards

Condition for choosing RSA exponent e

1 < e < φ(n) and gcd(e, φ(n)) = 1

33
New cards

Condition defining RSA private exponent d

ed ≡ 1 mod φ(n)

34
New cards

RSA encryption formula

C = M^e mod n

35
New cards

RSA decryption formula

M = C^d mod n

36
New cards

Why RSA works

Because M^{ed} ≡ M mod n.

37
New cards

Requirement for RSA message M

0 < M < n and gcd(M, n) = 1

38
New cards

How messages are encoded for RSA

Convert text → ASCII → binary → integer M.

39
New cards

Hamming C(7,4) purpose

Detects and corrects a single-bit error.

40
New cards

Hamming C(7,4) parity bit formulas

v5 = v1+v2+v4, v6 = v1+v3+v4, v7 = v2+v3+v4 (mod 2)

41
New cards

Why Hamming C(7,4) corrects one error

Each single-bit error produces a unique parity mismatch pattern.

42
New cards

Addition Principle

If sets are disjoint, total outcomes = r1 + r2 + ... + rm.

43
New cards

Multiplication Principle

If stages are independent, total outcomes = r1 × r2 × ... × rm.

44
New cards

Definition of factorial n!

n! = n(n−1)(n−2)...1

45
New cards

Permutation formula P(n, r)

P(n, r) = n! / (n−r)!

46
New cards

Combination formula C(n, r)

C(n, r) = n! / (r!(n−r)!)

47
New cards

Circular permutation count

(n-1)!

48
New cards

Basic probability formula

P(E) = |E| / |S|

49
New cards

Binary sequences of length n

2^n

50
New cards

Probability a binary sequence of length 8 has 6 ones

C(8, 6) / 2^8