Bird
0
0

Which hashing algorithm is recommended for password storage in Flask applications?

easy📝 Conceptual Q2 of 15
Flask - Security Best Practices
Which hashing algorithm is recommended for password storage in Flask applications?
Abcrypt
BMD5
CSHA-256
DBase64 encoding
Step-by-Step Solution
Solution:
  1. Step 1: Identify secure password hashing algorithms

    MD5 and SHA-256 are fast and not designed for passwords; Base64 is encoding, not hashing.
  2. Step 2: Recognize bcrypt as a slow, adaptive hashing algorithm designed for passwords

    It includes salting and is resistant to brute-force attacks.
  3. Final Answer:

    bcrypt -> Option A
  4. Quick Check:

    Recommended hashing = bcrypt [OK]
Quick Trick: Use bcrypt for secure, slow password hashing [OK]
Common Mistakes:
MISTAKES
  • Using MD5 or SHA-256 directly for passwords
  • Confusing encoding with hashing
  • Ignoring the need for slow hashing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes