Base64 is just a simple byte manipulation when any byte array stays as per 6bit(2^6) each in 24bit group. So for example, we have 123(3 bytes) so they are in ASCII 0x31, 0x32 and 0x33 in HEX and 00110001, 00110010 and 00110011 in binary.
This set just is made "connected" as 001100010011001000110011 and divided by 6 bits, i.e.: 001100, 010011, 001000 and 110011 so: 12, 19, 8 and 51 in DEC which are numbers of characters in BASE64 alphabet, and are equal to "M", "T", "I" and "z". The result we have: 123(ASCII) = MTIz(BASE64). Decoding is the same process, but reversed and it is worth to ment…