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
What is php compared to html?
How can you pass a variable by reference?
What does echo mean in php?
What is the difference between characters 34 and x34?
What is the importance of "action" attribute in a html form?
What is traits? How it is used in php?
How to delete a file from the system?
Tell me what sized websites have you worked on in the past?
What is the most common http method?
What is difference between get and post in php?
How can we submit a form without using submit buttons?
Explain different sorting function in php?
How do you end php?
How is session data stored?
What is in a cookie?