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
Write a program in php to check whether a number is prime or not?
What is the alternative structure for control structures?
Explain me how failures in execution are handled with include() and require() functions?
What is a php tag?
What is polymorphism php?
How I can control asset documents without GR/IR?
Why would we use === instead of ==?
How to get ip address of clients machine?
Are parent constructors called implicitly inside a class constructor?
Why does sql injection happen?
How to check a variable is array or not in php?
What is the name of scripting engine in php?
What is php crud api?
What is the meaning of a persistent cookie?
What is php? Why it is used?