Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

How should a password be stored in a Python application?

  1. A Encrypted with AES
  2. B Hashed with a deliberately slow algorithm such as bcrypt or argon2, with a unique salt
  3. C Base64 encoded
  4. D In plain text with restricted file permissions
Answer

Hashed with a deliberately slow algorithm such as bcrypt or argon2, with a unique salt

Hashing is one-way, so a database breach does not expose passwords. Slow algorithms make brute-forcing impractical.

All Python MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as