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
Explain the difference between $var and $$var?
What is the difference between == and === operator in PHP?
What is the w3c?
How many columns can be added in a table in mysql?
What is htaccess? Why do we use this and where?
Explain about the data types in PHP?
What is the string concatenation operator in php?
What is __ construct in php?
What is difference between post and put in rest?
What are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?
How does csrf attack work?
Give the case where we can use get and we can use post methods?
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
Explain Traits in PHP?
What is the current stable version of php?