How can we encrypt the username and password using PHP?
Answer Posted / indrajit saha
This is an example Login with encrypted password:-
---------------------------------------------------
<?php
echo "Encrypting <b>testing</b> using md5: ".md5("testing");
echo "<br />";
echo "Encrypting <b>testing</b> using sha1: ".sha1("testing");
?>
Output:-
---------
Encrypting testing using md5: ae2b1fca515949e5d54fb22b8ed95575
Encrypting testing using sha1:
dc724af18fbdd4e59189f5fe768a5f8311527050
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
List some of the features of php7.
What does $_cookie means?
How do you use bcrypt for hashing passwords in php?
How to get best php developer Experience in Php with Sugar CRM / VTiger.
Write a program to show the joining of two strings in php?
What are examples of dependent variables?
How is session id stored in browser?
Difference between array_combine and array_merge?
Is php used in 2019?
What is final class and final method?
What is var_dump?
Where is php code written?
Explain what is the function file_get_contents() usefull for?
What is csrf verification?
What is difference between echo and print in php?