How can we encrypt the username and password using PHP?

Ads
 

How can we encrypt the username and password using PHP?

How can we encrypt the username and password using PHP?

View Answers

November 15, 2010 at 10:50 AM

Hi,

If you want to encrypt username and password in the php login then use md5() or sha1() methods. These methods are providing the best encryption in the php.

The process of using md5() is:

$encrypted_username=md5($username);
$encrypted_password=md5($password);

The process of using sha1() is:

$encrypted_username=sha1($username);
$encrypted_password=sha1($password);

Thanks

Ads









Related Tutorials/Questions & Answers:
How can we encrypt the username and password using PHP?
encrypt the username and password using PHP
Advertisements
how to check username & password from database using jsp
Encrypt Password with JSP - JSP-Servlet
Username password
How can we solve this puzzle using java ?
How to supress displaying username and password in Java Web Start 10.21.2.11 Using JRE version 1.7.0_21-b11 Java HotSpot(TM) Client VM
How can we create a database using PHP and mysql?
How can we get second of the current time using date function?
How can we find the number of rows in a result set using PHP?
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
simple code to write an read and write the login detail to a xml file using javascript ( username and password )
What is the difference between PHP4 and PHP5?
username and password in servlet
How can I protect my database password ?
How we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl.
create webpage with table sql database using netbeans 6.8 with struts complete tutorial.(include username and password)
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How can we know the number of days between two given dates using PHP?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
Java swing store the encrypted password into database
How to Display Username After Login in JSP
can any one give the frogort password code using jsp,
How can we destroy the cookie?
How can we extract string 'roseindia.net ' from a string http://[email protected] net using regular expression of php?
How can we get the properties (size, type, width, height) of an image using php image functions?

Ads