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
Why print_r is used in php?
How do you use bcrypt for hashing passwords in php?
What is baseurl?
Which programming language does php resemble to?
What is design pattern? Explain all including singleton pattern?
What is difference between static and constant in php?
What are the different errors in php?
What is php in simple words?
What is the difference between for and foreach loop in php?
Is php easy language to learn?
What is the difference between static and dynamic websites?
How do you end a function in python?
Is ruby on rails php?
How to specify argument default values?
What is full form of php? Who is the father or inventor of php?