Imagine you are creating a login system for a web application. To ensure the security of user credentials, which of the following methods would be the best practice?
- Use HTTPS with Secure Cookies
- Store Passwords in Plain Text Files
- Apply Weak Encryption
- Implementing User-Friendly Passwords
Using HTTPS with secure cookies ensures data transmission security, protecting user credentials. Storing passwords in plain text files is highly insecure. Weak encryption is also insufficient. User-friendly passwords, while a good practice, do not directly ensure security; the infrastructure does.
Loading...
Related Quiz
- What is the purpose of the is_numeric() function in PHP?
- The ______ function in PHP is used to return the length of a string.
- What is the main difference between a session and a cookie in PHP?
- You are building a function that processes user data. If the user does not provide an age, you want the function to default to 18. Which PHP feature allows you to set this default?
- What is an associative array in PHP?