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
How do you define a constant?
What is the difference between rest and soap?
How to find the length of a string?
What function do we use to find length of string, and length of array?
How do I clear my browser session?
Write a program to get lcm of two numbers using php?
What is string in php?
What is http php?
Is array function in php?
Which variable declarations within a class is invalid in php?
How many types of arrays are there in php?
What is session in PHP. How to remove data from a session?
What is namespaces in PHP?
What is the use of post in php?
Which is the best php framework for a beginner?