Functions that may be used to encrypt strings in PHP [base64_encode, urlencode, sha1]_PHP tutorial

WBOY
Release: 2016-07-21 15:21:20
Original
973 people have browsed it

The login principle is quite complicated. It is too simple for me to think that curl will get the page and then post it.

Organize 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 "
";
?>

Record their approximate appearance so that they can be quickly identified when encountering the class in the future.

By the way, here is the address of the article where I found the script: http://www.jb51.net/article/29486.htm

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324923.htmlTechArticleThe login principle is quite complicated. It is too simple for me to think that curl will get the page and then post it. Sort out the price processing string functions you encountered: Copy the code The code is as follows...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!