base64: is a string based on the following characters A-Za-Z0-9\+ and a = to fill up to fit the remaining bytes.
So basically 3 bytes of data (from 0-255 for each 8bits) are represented into a 4 figures string. The = are used to fill the remainings figures. The final string length is always a mutliple of 4.