Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can you give example for trait in php?

1070


What is the difference between file_get_contents() and file_put_contents() in php?

1237


Does php have block scope?

1017


Do you know how to enable error reporting in php?

1043


why did u want to leave your past organisation?

2121


What is $row in php?

996


What is the difference between single-quoted and double-quoted strings in php?

1184


Can the value of a constant change during the script's execution?

1035


What are the differences between php constants and variables?

1247


Tell me what is the use of "enctype" attribute in a html form?

1063


Which function would you use to read a line of data from a file in php?

1082


What is difference between session and cookies in php?

1010


What is mysql_fetch_array?

1101


What is the purpose of the '.myd' file extension? What do thes file contain?

1039


Do you know how to declare an array in php?

1028