Ask Question
16 June, 20:34

To check if a password the user enters matches an encrypted password that's stored in a database is valid, you can

a. decrypt the password in the database and compare it with the user entry

b. use the password_hash () function to encrypt the user entry and compare it with the encrypted password in the database

c. use digest authentication to automatically encrypt the password and then compare it with the password in the database

d. use the password_verify () function to compare the user entry with the encrypted password in the database

+2
Answers (1)
  1. 16 June, 21:10
    0
    To check if a password the user enters matches an encrypted password that's stored in a database is valid, you can use the password_hash () function to encrypt the user entry and compare it with the encrypted password in the database.

    Option B is therefore the correct answer.

    Explanation:

    To check if a password the user enters matches an encrypted password that is stored in a database is valid, you can use hash functions to generate a hash of the entered password and then compare it with the hash of the password stored in the database.

    Thus, option B is the correct answer.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “To check if a password the user enters matches an encrypted password that's stored in a database is valid, you can a. decrypt the password ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers