Hashing and Passwords Flashcards

1
Q

What is Hashing?

A
  • Based on Cryptographic methods
  • Takes a normal mesage, and returns as a fixed-sized output
    • Hash value
    • Finite number of outputs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are some Hashing properties?

A
  • Deterministic
    • msg1→hash1
  • Computationally efficient
    • Hashing is (relatively) fast
  • Pre-image resistant
    • Hashing is one-way
  • Collision resistant
    • If msg1→hash1 & msg2→hash1, then collision because they are the same
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some Common Hash Functions?

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

What is the MD5 Hash Function?

A
  • It’s a broken system
  • 16 byte output (128 bits)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the SHA1 Hash Function?

A
  • Slower, more secure
  • 20 byte output (160 bits)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are three kinds of offline attacks?

A
  1. Brute Force
  2. Dictionary Attack
  3. Rainbow Table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are some website/server responsibilities?

A
  • Use Hashing
    • (Increases exploit effort in event of password file compromise)
  • Use Salt
    • (Protect against Rainbow Table Attack)
  • Control/restrict access to the password file
    • (Reduce likelihood of password file compromise)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are some Client responsibilities?

A
  • Uncommon password
    • (Protect against Dictionary Attack)
  • Uses multiple character sets
    • (A-Z, a-z, 0-9, special characters) (Protect against Dictionary Attack. Protect against (increase effort of) Brute Force Attack)
  • Long password
    • (Protect against (increase effort of) Brute Force Attack)
  • Do not reuse passwords from other accounts
    • (Decreases impact in event of password file compromise)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does Two Factor authentication work?

A

You have to provide:

  • Something you know (password, usually)
  • Something you have or something you are
How well did you know this?
1
Not at all
2
3
4
5
Perfectly