Test 3 - Review Questions Flashcards
Can you undo a hash function?
No
What are different types of ciphers?
Stream and Block
What is the difference between Stream and Block ciphers?
Stream: One character at a time
Block: Group of characters at a time
What is the Caesar Cipher?
The Caesar cipher is one of the earliest known and simplest ciphers. It is a type of substitution cipher in which each letter in the plaintext is ‘shifted’ a certain number of places down the alphabet. For example, with a shift of 1, A would be replaced by B, B would become C, and so on.
What is a block cipher used in the real world?
DES, AES
What does AES stand for?
Advanced Encryption Standard
What does DES stand for?
Data Encryption Standard
What is the piece of math used in AES/DES?
XOR
What is XOR?
(XOR) Exclusive or or exclusive disjunction is a logical operation that outputs true only when inputs differ (one is true, the other is false). Represented with ^ (ie. P^Q)
What is another way of saying, a XOR b?
Not on the test, just for understanding
a XOR b = (a OR b) AND (not a AND b)
How is RSA different from AES?
- RSA is related to prime numbers and factoring them
2. RSA is asymmetric, while AES is symmetric
What result will you get for
Encode(public, pt)?
ct
What result will you get for
Encode(private, ct)?
pt
Let’s say Alice sends Bob a msg, how would Bob know it came from Alice?
- Bob generates Public(Bob), Private(Bob)
- Alice generates Public(Alice), Private(Alice)
- Bob tells everyone Public(Bob)
- Alice tells everyone Public(Alice).
- Alice Encode [Public(Bob), msg] to get ct
- Alice sends Bob cipher text
- Bob calculates encode [Private(Bob), ct] to set message.
Let’s say Alice sends Bob a msg, and she encodes it. How would Bob decode it?
Alice
Encode(Public(Bob))
Encode(Private(Alice))
- Bob would Encode(Public(Alice))
2. Encode(Private(Bob), CT)
Let’s say Alice sends Bob a msg, how would she generate it?
- Bob generates Public(Bob), Private(Bob)
- Bob tells everyone Public(Bob)
- Alice Encode [Public(Bob), msg) to get ct
- Alice sends Bob cipher text
- Bob calculates encode [Private(Bob), ct] to set message.
What is more expensive AES or RSA?
RSA, has more CPU cycles due to higher computations.
When do we use encryption in our daily lives?
- E-Commerce, ie. using credit card numbers.
2. Check emails