Base64 encoding and decoding implemented