UrlEncode functions that may be used to encrypt strings in PHP [Base64_encode, UrlEncode, SHA1]

Source: Internet
Author: User
Tags sha1 urlencode
The login principle is still quite complicated, as I think Curl gets the page again post the idea is very simple.
Sort the functions that are encountered by the price processing string:

Copy the Code code 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 later encounters with classes can be quickly identified.
By the way, I found the script article. Address: Http://www.jb51.net/article/29486.htm

The above describes the UrlEncode PHP may be used to encrypt the function of the string [Base64_encode, UrlEncode, SHA1], including the content of the UrlEncode, I hope to be interested in PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.