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:
encrypt the username and password using PHP
how to check username & password from database using jsp
Advertisements
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 we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl.
Username password
simple code to write an read and write the login detail to a xml file using javascript ( username and password )
can any one give the frogort password code using jsp,
struts2 how can we add an radio button to form using a class(doa)
struts2 how can we add an radio button to form using a class(doa)
How to Display Username After Login in JSP
username and password in servlet
create webpage with table sql database using netbeans 6.8 with struts complete tutorial.(include username and password) 0 Answer(s)
how can I great two user and password in C++?
how can I great two user and password in C++?
Java swing store the encrypted password into database
how can we store the encrypted passwaord in swings?
ModuleNotFoundError: No module named 'phpy'
How can we save a data list in jsf?
how we can create website through java
How can we get hibernate statistics?
validating username and password from database
how can create album in java by using Stack ....
Create an HTML form login.html that accepts the username and password
Change root password of MYSQL using Java
what is cloud computing? any how we can implement?
How many cookie object we can store in a session? is there any limit?
How to encrypt JavaScript?
How can we implement Pop-up in JQuery without Plugin?
How a simple "Hello World" can be displayed using Spring 3.2 MVC?
how can i prevent duplicate records using servlets and MVC model?

Ads