Lecture 3 - Hashing Flashcards

1
Q

What is a hash?

A

Hash functions take a long input and produce a short fixed length output called a hash value or a digest

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

Hash functions protect what?

A

Data integrity

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

Why do we need hashing?

A
  1. Used for Digital signatures
  2. For file integrity verification
  3. Protection of digital assets
    - Credit card transactions
    - Software updates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is meant by a one-way hash function?

A
  1. It should be practically impossible to find the original message.
  2. Given some message, we shouldn’t be able to find another message that produces the same hash.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the “Collision-Resistance” property?

A

It should be difficult to find two messages with the same hash output.

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

What type of attacks can be used against hash functions?

A
  1. Collision attack
  2. Length extension attack
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Who developed MD hash functions?

A

Ron Rivest

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

SHA-1 is a ____-bit hash function

A

SHA-1 is a 160-bit hash function

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

Is SHA-1 secure or insecure?

A

Insecure - broken in 2005

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

What are rainbow tables?

A

A pre-generated hash values of popular passwords and or variants

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

List 5 Applications of One-Way Hash Functions?

A
  1. Integrity Verification
  2. Password Verification
  3. Trusted Timestamping
  4. Message Authentication Code (MAC)
  5. Blockchain and Bitcoins
How well did you know this?
1
Not at all
2
3
4
5
Perfectly