Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Write a program to find no of days between two dates in php?

1046


Explain what are psrs? Choose 1 and briefly describe it?

1010


Why is used in php?

996


What is the use of explode() function?

1111


How you can update memcached when you make changes to php?

1130


Which function you can use in php to open a file for reading or writing or for both?

1144


Is php a backend?

1022


Can you give example for trait in php?

1060


What is use of preg_replace in php?

1110


What are php variables?

1021


Explain me is it possible to destroy a cookie?

994


How can we execute a php script using command line?

1100


Do csrf tokens expire?

1050


Tell me what are the different types of errors in php?

1024


Is it worth learning php in 2019?

1006