What is the main reason for hashing passwords before storing them in a database?
- To make passwords case-insensitive
- To save storage space
- To improve password visibility
- To enhance security
Hashing passwords before storing them in a database enhances security. It ensures that the original password is not stored, making it much more difficult for attackers to retrieve user passwords in case of a breach.
Loading...
Related Quiz
- How do you call a user-defined function in PHP?
- You can use the $_GET superglobal in PHP to get data sent via the POST method from a form.
- What is the purpose of the filter_input_array() function in PHP?
- What can be potential issues when working with Regular Expressions in PHP?
- Which of the following is NOT a valid visibility keyword for properties and methods in PHP classes?