1. Home
  2. Computer Science MCQs
  3. Cybersecurity
  4. Which approach is best for storing user passwords?

Added 2 Nov 2026

Which approach is best for storing user passwords?

  1. A single fast hash such as MD5 or SHA-1
  2. Reversible AES encryption with one key
  3. Base64 encoding before saving to the table
  4. A slow salted hash such as bcrypt or Argon2 Correct answer

Correct answer

D. A slow salted hash such as bcrypt or Argon2

14 views

MCQSEXAM

Explanation

Slow, salted password hashes such as bcrypt, scrypt or Argon2 make brute-force and rainbow-table attacks very expensive. MD5 is far too fast, encryption can be reversed if the key leaks, and Base64 is not security at all.

Reference

Asked in: CISSP, Security+, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cybersecurity MCQs

Practise all Cybersecurity MCQs

Similar MCQs