In what are the ways you can encrypt the password ?
Answer Posted / asha banu
Hi,
<?php
$password = crypt('mypassword');
if(crypt($user_input, $password)==$password)
{
echo "Password verified!";
}
?>
this is an example to encrypt the password. There is no
method for decrypt.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of stored procedures in php?
What is the difference between print() and echo()?
What are the different components used in php for formatting?
How do I make a reset button in html?
Require_once(), require(), include(). What is difference between them?
Explain what is the static variable in function useful for?
What does $_server means?
How do we get the current session id?
What is file upload?
What is the difference between htmlentities and htmlspecialchars in php?
How does csrf token work?
What is final in php?
Write down the code for save an uploaded file using php?
What does the scope of variables means?
Explain me what are the main error types in php and how do they differ?