Base64_decode problems. Assignment Problems

Source: Internet
Author: User
About base64_decode. There is also a problem of assignment. Page $ id = $ _ GET ['id']; $ _ GET ['id'] is encrypted using base64_decode. What should I do. To show $ id = the original ID value? For example, the original ID = 1 is encrypted by base64_decode to obtain the question about base64_decode of MQ. There is also a problem of assignment.
Page $ id = $ _ GET ['id']; $ _ GET ['id'] is encrypted using base64_decode.
What should I do. Can be displayed
$ Id = What is the original ID value?



For example, the original ID = 1 is encrypted by base64_decode to get MQ =

The function or method to use. How can I restore MQ = to 1?


------ Solution --------------------
PHP code
Base64_encode ('1') = 'mq = '; base64_decode ('mq =') = '1 ';
------ Solution --------------------
Base64_encode encoding
Base64_decode decoding

Please do not encrypt it later.

$ ID = base64_encode ($ ID );
Transfer to other pages
$ ID = base64_decode ($ _ GET ['id'])?
Decoding

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.