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 is the role of the .htaccess file in php?
What is csrf token and how it works?
What is a string in r?
Does exist in php?
What is the use session in php?
Explain how can we increase the execution time of a php script?
What is split function in php?
Where are php configuration settings stored?
What are include() and require() functions?
Does php support polymorphism?
Is php 7.0 stable?
Tell me how to retrieve a cookie value?
How can we automatically escape incoming data?
What is the difference between javascript and php?
What does the scope of variables mean?