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
How do I get csrf token?
What is apache and php?
Is php fully object oriented?
How to register a variable in PHP session?
What are the advantages of stored procedures, triggers, indexes in php?
What are advantages of .htaccess?
Can you pass an array into a function?
What is the difference between client-side and server-side programming?
Is it more secure to use cookies to trfer session ids?
What backslash character will match whitespace?
What is the best practice for running mysql queries in php? Consider the risk of sql injection.
How to create a session? How to set a value in session?
How do you define a constant?
What is a query give example?
How to get a total number of elements used in the array?