The base64 decoding algo