Base64 Encoding: Craig Jacquez
Base64 Encoding: Craig Jacquez
Craig Jacquez
[email protected]
Encoding - Decoding
What is Base64?
• 2^6 = 64
f o o d
01100110 01101111 01101111 01100100 // 8 bit binary
01100110011011110110111101100100 // Bit Stream
011001 100110 111101 101111 011001 00 // 6 bit binary
Calculate 6bit binary value
f o o d
01100110 01101111 01101111 01100100 // 8 bit binary
01100110011011110110111101100100 // bit stream
011001 100110 111101 101111 011001 00 // 6 bit binary
25 38 61 47 25 0
Convert 6 bit to ASCII text
f o o d
01100110 01101111 01101111 01100100
01100110011011110110111101100100
11001 100110 111101 101111 011001 000000
25 38 61 47 25 0 // index
Z m 9 v Z A // base64 encoded