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
Write a program to find no of days between two dates in php?
Explain what are psrs? Choose 1 and briefly describe it?
Why is used in php?
What is the use of explode() function?
How you can update memcached when you make changes to php?
Which function you can use in php to open a file for reading or writing or for both?
Is php a backend?
Can you give example for trait in php?
What is use of preg_replace in php?
What are php variables?
Explain me is it possible to destroy a cookie?
How can we execute a php script using command line?
Do csrf tokens expire?
Tell me what are the different types of errors in php?
Is it worth learning php in 2019?