
How can we encrypt the username and password using PHP?

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
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.