tanszek:oktatas:techcomm:base64_coding
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tanszek:oktatas:techcomm:base64_coding [2024/10/07 11:27] – knehez | tanszek:oktatas:techcomm:base64_coding [2024/10/07 11:29] (current) – knehez | ||
---|---|---|---|
Line 52: | Line 52: | ||
Thus, the Base-64 encoding of `001100110011` is **Mz**. | Thus, the Base-64 encoding of `001100110011` is **Mz**. | ||
- | ### Padding and Handling Non-Multiples of 3 Bytes | + | === Padding and Handling Non-Multiples of 3 Bytes === |
Base-64 encoding operates on blocks of 3 bytes (24 bits). If the input data isn’t divisible by 3, padding is added to complete the block. This padding is represented by the **' | Base-64 encoding operates on blocks of 3 bytes (24 bits). If the input data isn’t divisible by 3, padding is added to complete the block. This padding is represented by the **' | ||
- | #### Example 1 === | + | ===Example 1 === |
Encoding the byte `00000001` | Encoding the byte `00000001` | ||
Line 85: | Line 85: | ||
* One major advantage of Base-64 encoding is that it safely encodes binary data into a **text-friendly format**, making it ideal for transmission over protocols that only support text (like email and HTTP headers). | * One major advantage of Base-64 encoding is that it safely encodes binary data into a **text-friendly format**, making it ideal for transmission over protocols that only support text (like email and HTTP headers). | ||
- | ### Real-World Application of Base-64 | + | === Real-World Application of Base-64 |
In everyday internet use, Base-64 encoding is used in various places, such as: | In everyday internet use, Base-64 encoding is used in various places, such as: |
tanszek/oktatas/techcomm/base64_coding.1728300461.txt.gz · Last modified: 2024/10/07 11:27 by knehez