Can base64 encoding result be used in various programming languages or platforms?

Source: Internet
Author: User
A project uses base64 encoded strings to PASS Parameters in different programming languages. The encoding result is consistent on various platforms. That is to say, PHP uses base64_encode encoding to determine whether the strings can be correctly parsed on IOS or android platforms, or the opposite process works... A project uses base64 encoded strings to PASS Parameters in different programming languages. The encoding result is consistent on various platforms. That is to say, PHP uses base64_encode encoding to determine whether the strings can be correctly parsed on IOS or android platforms, or the opposite process works. Standard function libraries on their respective platforms are required.

Reply content:

A project uses base64 encoded strings to PASS Parameters in different programming languages. The encoding result is consistent on various platforms. That is to say, PHP uses base64_encode encoding to determine whether the strings can be correctly parsed on IOS or android platforms, or the opposite process works. Standard function libraries on their respective platforms are required.

Base64 is the encoding algorithm. It is used to convert three eight-bit bytes into four six-bit bytes, and then complete the code to process special characters.
Theoretically, as long as it is implemented according to the official algorithm, there is no such thing as platform isolation.

Base64Encryption is performed regardless of how the original data is encoded.AsciiCharacters. Generally, the default results contain the following characters:[0-9a-zA-z +/]A total of 64 characters, so it is calledBase64.

The decoded data is the same as the pre-encoded data, so it is common.

Base64 is just an algorithm. As long as you use the same algorithm, it must be language-independent and platform-independent.

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.