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
Can you give example for trait in php?
What is the difference between file_get_contents() and file_put_contents() in php?
Does php have block scope?
Do you know how to enable error reporting in php?
why did u want to leave your past organisation?
What is $row in php?
What is the difference between single-quoted and double-quoted strings in php?
Can the value of a constant change during the script's execution?
What are the differences between php constants and variables?
Tell me what is the use of "enctype" attribute in a html form?
Which function would you use to read a line of data from a file in php?
What is difference between session and cookies in php?
What is mysql_fetch_array?
What is the purpose of the '.myd' file extension? What do thes file contain?
Do you know how to declare an array in php?