What is base64 encoding
tags: learning programming
content
- a way to transform data
- 64 characters are used (a-z, A-Z, 0-9, +, /)
Process:
- the data is first transformed to binary
- then broken down into 6-bit groups
- then mapped to one of the 64 characters, based on this table
Example:
- string
MANto binary:
M -> 01001101
a -> 01100001
n -> 01101110
- grouped into 6 bit groups:
010011 010110 000101 101110 - mapped back to characters:
TWFu