In a Flask application, you are required to implement user authentication. How would you securely manage user passwords?
- Hash and salt user passwords before storage
- Store passwords in plain text for easy retrieval
- Transmit passwords in HTTP headers for convenience
- Use symmetric encryption for password storage
Securely managing user passwords in Flask involves hashing and salting them before storage. This ensures that even if the database is compromised, attackers can't easily recover passwords.
Loading...
Related Quiz
- In Django, what is the role of a "view"?
- Why are tuples generally faster than lists when it comes to iteration?
- In OOP, what is the term for the class from which the derived class inherits?
- What is the purpose of using setUp and tearDown methods in a unittest TestCase class?
- The ____ attribute in a Matplotlib Axes object represents the y-axis.