Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

How can we encrypt the username and password using PHP?

Ads

 
 

Share on Google+Share on Google+

brijesh
How can we encrypt the username and password using PHP?
1 Answer(s)      6 years and 9 months ago
Posted in : PHP

How can we encrypt the username and password using PHP?

Ads
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:
Advertisements