"; e"/> "; e">
Home > Article > Backend Development > urlencode functions in php that may be used to encrypt strings [base64_encode, urlencode, sha1]
The login principle is quite complicated. It is too simple for me to think that curl will get the page and then post it.
Collate the functions of price processing strings encountered:
Copy the code The code is as follows:
$encryption = "username";
echo base64_encode ($encryption);//echo "dXNlcm5hbWU= ";
echo "
";
echo urlencode("http://".$encryption);//echo " http%3A%2F%2Fusername ";
echo "
" ;
echo sha1($encryption);//echo "249ba36000029bbe97499c03db5a9001f6b734ec"
echo "
";
?>
The above introduces the functions [base64_encode, urlencode, sha1] that may be used to encrypt strings in urlencode PHP, including the content of urlencode. I hope it will be helpful to friends who are interested in PHP tutorials.