How to write the PHP encryption algorithm

Source: Internet
Author: User
Could you tell me how to write the PHP encryption algorithm and see that some PHP code is full of encrypted garbled characters? how can this problem be solved? it seems that base64 can only encrypt a single character, how can we encrypt a webpage? how can we restore the webpage at runtime ?, Base64 is not only used to encrypt a single character PHPcodestringbas. how can I write a PHP encryption algorithm?
Some PHP code is full of encrypted garbled characters.
So what is the execution?



I can see that base64 can only encrypt a single character. how can I encrypt a webpage?
How does one restore the database during running?




------ Solution --------------------
Base64 is not only used to encrypt a single character
PHP code
String base64_encode (string $ data) base64_encode () returns uses base64 to encode data. This encoding is designed to enable binary data to be transmitted through a non-pure 8-bit transport layer, such as the subject of an email. Base64-encoded data takes up about 33% more space than raw data. Example #1 base64_encode () Example

  This example shows: VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw =

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.