Which of the following PHP functions is commonly used to create a hashed password?
- encrypt()
- hash_password()
- password_hash()
- create_hashed_password()
The password_hash() function in PHP is commonly used for creating hashed passwords. It incorporates strong encryption algorithms and automatically generates a unique salt for each password, enhancing security.
Loading...
Related Quiz
- What are some common uses of the $_SESSION superglobal array in PHP?
- What is the primary purpose of using transactions in database operations?
- How do I escape data before storing it in the database?
- You are using a switch statement in your PHP script and you want to execute the same block of code for multiple cases. How would you do this?
- The sort() function in PHP sorts an array in ______ order.