base64 python decode

Solutions on MaxInterview for base64 python decode by the best coders in the world

showing results for - "base64 python decode"
Matteo
29 May 2017
1import base64
2
3message = "Python is fun"
4message_bytes = message.encode('ascii')
5base64_bytes = base64.b64encode(message_bytes)
6base64_message = base64_bytes.decode('ascii')
7
8print(base64_message)
Mia
25 Feb 2016
1import base64
2msg = base64.b64decode(msg)
Flavien
18 Apr 2018
1>>> import base64
2>>> encoded = base64.b64encode(b'data to be encoded')
3>>> encoded
4b'ZGF0YSB0byBiZSBlbmNvZGVk'
5>>> data = base64.b64decode(encoded)
6>>> data
7b'data to be encoded'
8
Lylia
26 Jan 2021
1#== Decoding ==#
2
3import base64
4
5base64_message = 'UHl0aG9uIGlzIGZ1bg=='
6base64_bytes = base64_message.encode('ascii')
7message_bytes = base64.b64decode(base64_bytes)
8message = message_bytes.decode('ascii')
9
10print(message)
Wallace
10 Mar 2016
1import base64
2coded_string = '''Q5YACgA...'''
3base64.b64decode(coded_string)
queries leading to this page
base64 python libbase64 to ascii pythonb64 decode python stringto base 64 ppythonpython to base 64simpel base64 decode in pythonbase64 decode in pythonpython encode string in base64if base64 can decode pythonpython base64 b64install base64 pythonpython base 16 encodeimport base64 in pythonfrom base64 pythonpython encoding base64 stringconvert string to base64 pythonencode base64 python stringhow to decode base64url in pythonbase64 python docspython execute base64 codehow to convert base64 code in pythonbase64 decode with characters pythonencode base64 pythonhow to set encoding to base64 while writing a file in pythonpython base64 encode file examplebase64 encode query pythonencode and decode a string with python base64authentication base64 encode pythonbyte to base64 pythonstr decode 28 27base64 27 2c 27strict 27 29get base64 audio chunks from udp pythondecode base64 string python asciibase 64 decoder to string pythonbase 64 run pythonpython base64 encode and decode examplehow to encode base 64 in pythonbase64encode in pythondecode base45 pythonpython convert string to base64python decode base 64 stringpython working with base 64 encoding base64 pythonbase64 b64encodebase64 encode pythonpython base64 decode to asciidecode 64 pythonnameerror 3a name 27base64 27 is not defined decodepython decode base64 to stringbase64 decode to string pythonimport base64 pybase64 decode pyhtonpython base64 encode get bytestringpython3 base64decode adds a bdecode base 64 pythonb64encode to stringdecode from base64 pythonpyton decode bytearray base64python base64 decode to byteshow to base 64 encode in pythonpython base64 to datahow to decode a string which is encoded in base64 how to encode string to base64 in python python base64 encodehow to fetch url from base64 encoded string pythondecode a sbase 64 encoded python filebase64 encoding of character strings pythonbase86 encode pythonpython base64 string encodeconver all type base64 to pythonbase64 decode pyhow to compare base64 in pypython base64url decodehow to perform maths on base64 in pypython base64 encode to strngconvert byte to base64 string python utf 8binary data to base64 pythonencoding and decoding base64 in pythonhow to decode base 64 data pythonpython decode b64python program for base64base64 decodebyteswhy does it show decodestring function of base64 with a lineconvert string to base64 python codebase64 decode python looppython base64 decode from bytesbase64 urlsafe b64decodepython encode a string to base64python base64 b64decodebase64 python encode filereturn base64 string pythonpython code decode base64python base 64 encodebase64 module pythonpython base64 encoidetype for base64 in pythonpython bytes to base64python b64encodeopen with base64 pythonencode string to base64 c3 bdthonbase64 encode python examplepython base64binarypython encryption base64 22128 bits and base64 encoded 22 pythonpython 3 base 64 decodeconvert text to base64 encoded string pythonencode with base64 in pythonbase64 decode and decode pythonpython base54 decode imageencode base 64 pythonpython b64 encodeto base64 in pythonconverting a string to base64 string in pythonbase64 python algorithmcan i decode base64 without file type python 3fpython3 encode something in base64decode a base64 string pythonpython3 base64 decode stringdecode base64 python onlinepython base64 decode stringb64 decode pythonpython sample using base64 b64encodeencode with base64 pythonbase 64 encoding pythondecode base64 string to bytes pythonbase64decode with pythonbase64 string pythonstring to base64 encode pythonpython base 64 string encodingpython encryption base64 with keypython encode in base64python decimal to base64how to decode base64 in pythonsee base64 string pythobpython 3 8 base64 encode stringbase64 strict encode64 in pythonpython3 base64 b85 b64 pythonbase64 decode python without importconvert base64 decode to sict pythondecode string bas64 pythonconvert string in base 64 pythonbase64 encode pythonpython base64 b64decode examplehow to encode a string to base64 in pythonencode bytes to base64 string pytholnpython bytes encoding base64python do base64base64 encoding pytohnpython encode base64 to stringpython decode base64 asciiconvert string to base64 string pythonhow to convert decode base64 in pythonright encoding for base64 pythonpython convert to base63import base64 pythonbase64 python codepython3 base64 b64encodebase 64 encode string pythonpython base32 decodebase64 python decode strdecode base64 puyhonbase64 b64encode python 3simple decode base64 pythonbase64 encode python3encoding 3dbase64 pythonuse python to convert to base 64decode base64 secert string pythonstring to base64 in pythonuse python to decode base64base64 b64encode 28data bytes 29 decode 28 29python to base64function generate base64 pythonhow to decode base 64 pythonpython base64 encode string without bpython decode64python base64 decryptpython 64 bit encodingpython base64 b64decodepython base58 decodepython convert to base64 2bascii encodingpython base64 encode as stringpyhon decode base64doing base64 use python 2 2base64 python librarypython base64 decode decimalbase64 b64encode python usesrun python base64import base64base64 to text pythonbinary to base64 pythonbase64 in python 3get python to treat base64 text as a stringis base64 in pythondecode an encode string in base64 pythobase64 b64ddecode in pythonencode byte to base64 pythonbase64 b64decode python3bytes to base64 pythonnameerror 3a name 27base64encode 27 is not definedbase64 decodse pythonpython decode base64 string of numberspython parse base64 from stringhow to encode string base64 pythonpython 3 base64 decodestringbuffer from 28encodedimage 2c 27base64 27 29 in python3 payloadbase64 encode numbers python64 encoding pythonpython base64encodepython decode base64 to bytespython convert to base64 stringpython number to base64how to decode a base64 encoded string pythonencode base64 python 27base64encode pythonis base64 a built in pythonbase64 encodebase64 pythonpython decode base64 and print base64 decodedecode base 64 application 2foctet in pythonuse base 64 in flask pythonbase64 b64decode 28data 29library base64 pythonbase to base converter pythonbase64 encoding in pythonbase64 decode string pythonpython encode base64 rawpython3 decode base64base64 decode in pythonhow to encode string to base64 in python and decode it backpyhton base64 encodeencriptar base64 pytthonpython how decode base64 stringhoe import base64 in pythonhow to base64 encode bytes string in pythonbtoa encode python decodeif i in 5b63 2c64 5d pythonpython decode base64 fileblob convert to base64 python3how to covert base 64 into zzlpibuffer from 28encoded image 2c 27base64 27 29 in python3 payloadpython base64 encode and decodepython parent encodingbase64 decode python testmicropython base64 missingbase64 python encodestringbase64 encode to string pythonpython code encode into base64base64 encode python funcencoded string with base64 pythondo base64 have encryption in pythonconvert base64 string to html python 3base64 in pythonpython base64 bytes to stringhow to base64 encode string pythonb64decode python modulepython decode base64 string to objecthow to convert a string to base64 in pythonpython base 64 to textpython base64 encode codebase64 to base16 pythonhow to base64 encode and decode pythonbytes from base64 pythonpython b64decodepython base64 bytes generatorpython script base64python base64 encode 28string 29 examplebase64 encryption pythonbase64 python encode onlinebase64 to binary pythonbase64 decode python to stringbase64 b64encode in python 3 5encode text to base64 pythonpython decoding base64 base64 decode pythonpytyhon base64 decodedecodestring pythonbase64 examples pythonsyntax error with 3a when decoding base64 pythonbase86 decode pythonpython library import base64how to encrypt strings in base64 pythonpython base64 encode stringpython3 bytes to base64 stringencode a string to base64 pythonbase64 utf8 decode pythonpython base45 decodebase64 encoding python 3python encode in basepython decode base64 before printencode string base64 pythonbase64 b64 decode stringbase64 string encode pythonpy base64 decodepython object to base64decrepty from b64 pythonpython import base64python generate base64base64 python scriptb to base 64 pythonstring encryption python base64class bytes decode base64 pythonpython encode object to base64convert bytes to base64 pythonpython3 encode string base64python base64 encode filepython and convert text to base64python base64 raw decodehow to decode base64 in python 3base64 encode a python scriptdecode 28 27base64 27 29decode base 64 in pythonsave base64 bytes as stringinput string convert to base64 pythonhelp me decode this in b64 28first encode to utf 8 for bytes 29base64 decode pythonbase64 decode algorithm pythonbase64 encode python stringconvert base65 to respective file name in pythonpython encode base64python decode from base 64python base64 ecodepython decode base65base64 decode text python onlineconvert base64 decode to string pythonbase 32 encode pythonbase 64 encode pythonpython encode to base64python turn folder into base64 stringpython3 enconde base64how to encode string in base 64 in pythonencode buffer to base64 pythonbase64 decodestring pythonpython3 encode base64 stringpy convert string in base64base64 decoder pythonpython best way to string base64 data in stringconvert base 64 to decimal pyimport base64 encode pythonbase64decode in pythonencode into base64 pythonb64decode binary pythonwhat is 27base64 pythonpython string to base64 stringbase64 encode a string pythonpython base64 to textdecode base64 in pythonhow to encode and decode base64 in pypython string to base64python 3 base64 decodepython what is the type of base64 encodebase64 python encode stringdecode base64 image pythonpython base64 decode to decimalpython tobase64python encode b64base 64 decode pythonbase64 2b pythonbase64 decode python3encodebase64 pythonencoded base64 pythonhow to work with base64 in pydecode string base64 pythondoes base64 comes with pythonbytes to base64 pyhtonhow to encode bas64 in pyhonbase64 decode python utf 8python from base 64convert base 64 to base 2 pythonpythion base 64python to base64stringdecode a string in base64 pythonpython base64 encrypt and decryptpython base64 incompletebase64 encodestring python2bytes to base64 encoded string python lamdbabase64 encode pythohnencodage base 64 pythonbas64 to bytes pythonconvert numbers to string python base64decode 64 base in pythonconvert a string to base64 pythonpython base64 decodecreate a base64 encoded string pythonencode decode base64 python 27decrypt a base64 string using pythondecode base64 http response data in pythondecde base64 pythonpython turn a raw directory into base64 stringstring to base64 pythonbase64 to string pythonbase64 import b64encodepython base64decodepython base64 encodingpdffilemerger write to base64 string pythonbase64endocde and decode in pythonbase64 encode decode python 3 python api base64how to encode text in base64 pythonbase64 python installconvert base64 to byte array using pythonbase85 encode decode pythonb64decode to anssi python 2buffer from 28encodedimage 2c 27base64 27 29 in python3base64 b64encode convert to stringhow to import base64 in pythonbase 64 encode in pythonpython 64 bit decoderfrom string to byte base64 pythondecode base64 string to str pythonbase64 decode 28input base64 default 29 wich library must importbas64 decoded pythonhow to base64 decode in pythonpython3 base64b decodepython 3 base64 decode filehow to encode a string base64 pythonpython 3 decode base64base64 encode in pythonpython base 64 encode decodebase64 encode pytohnmodule base63 as b64 encodepython base32 counterbase64 pythoinpython base64 encodepython decode html base64decode base64 string pythonbpython encode string to base64get base64 string from bytebase64 pythonpython3 base64 encode bytes to stringpython base64 decode binary database64 encoding python manuallypython convert from base64import base64 in python encodestring base64 encode python64 base encoder pythonbase 64 encode and decote function in pypython encode string base64base85 encode pythonbase64 encode pass pythonbase 64 converter pythonbase32 decode pyhtnhow to decode base64 text in pythonbase64decode python return stringb64encode pythonbase 64 string in python 3how to encode python script in base64 10 timespython decode base 64 python base64 dencodehow to base 64 decode in pythonpython encode 28 27base64 27 29convert base64 string into image pythonpython base65 imortlist of base64 characters pythonbase45 decoder pythonbase64 b64encode python 3decode base64 with pythonpython base64 decode string into bytesconvert bytes to base64 string pythonconvert byte to base64 pythonbase64 to binary pythonpython convert base64 to stringbase64 b16decodepython 3 bse64 decodebase64 encode python base64 decode a string pythonpython base 64python how to decode base64python to base64 stringpython base64 to base32convert bytes to base64 pythonilist of base64 characters in pythonbase64 encodestring pythonpython base64 decode to stringpython base64 string to bytesprint base64 encoded string pythonbase64 encoded string pythondecode base64 pybase64 hash pythonpython base64 algorithmbase64 decoded pythonwhat is a base64 string pythonpython3 base64base64 encoding pythonpython generate base64 stringdecode64 pythonconvert to base 64 pythonb64 encode pythonpython3 base64 bytes to stringbase decode python encode base64 to string python 3python string decode base64convert base64 b64decode to string pythonbase64 decode and encode pythonbase64 encode 64 pythonbase64 encode python documentationbase64 decode pythonbase64 library in pythonhow to use base64 encoding of character strings to representing textbase64 modulebase62 encode pythonpython base64 encode methodbase64 decode and decode python how to useget base64 string pythonpython converto to b64base64 decode using pythonbase64 algorithm pythonbase64 decode text pythonbase64 encodebytesbase64 encode python functionbase64 encode variable pythonbase64 python encode to stringbase64 b64encode python get stringdecode string in python 3 to get integer with base64import base64 python installhow to deode bse 64 in pythonpython 3a decode base64encode string to base64 pythonbase64 encodestring 28 29 in pythonpython string representation of base64 to base64decode base64 python to stringbase64 code and then run it pythonencoding base64 pythonpython byte string base64 encodepython encode string and decode with base64decode string in python 3 with base64how secure is base64 pythonpython string base64 encodebase64 decode to bytes pythonencode in base64 pythoninput 28 29 string convert to base64 pythonpython turn folder into base64pythn encode base 64online python base64 encodetext to base32 pythonconvert base64 string to byes pythonpython import base64decodedread base 64 pythonbase64 module in pyhonbase64 b64encode exampledecode base64 to string pythonpython base 64 to java decode bad decodebase64 encode pybase64 string to bytes pythonstring object does not have decode b base64python text to base64base64 py import decodeencode and decode using base64 pythonpython string to number base64 bytespython base64 encode string examplebase64 decode python without base64decode base64 string python 3b64decode to asciiencode base64 bytes pythonhow to decode base 64 in pythonbase 64 string pythondecode base64 with python line commandpython encoding base64base64 encoding and decoding in pythondecode base16 pythondecode base64 in pythonpaython encode in x64python encode string as base64bytes decode base64 pythonmicropython base64 module missingpython3 convert string to base64base64decode pythonpython module base64how to change base64 string in pythonpython encode and decode base64convertir bytes a base64 pythonpython base 64 to java decode bad basebase64 decode micropythonpython base64base64 b64encode python 3 text 5cnpython base64 a stringbase64urlencode pythonbase64 decode pytonbase64 to otf8 pythonbase64 b64encode to stringb64decode python 3base64 python examplepython base64 decode bytes to stringpython 3 base64 encode stringbase 64 pythonhash64 pythonpython abd encode base64b64encode python 3base64 encode text pythonpython encrypt string base64base 64 python encodedeconveet from base64 into python codehow to encode python text in base 64 and convert back to stringpython convert ascii to base64python string base64decode 28base64 29 pythondecode python base64encode in 64 base python how to encode the string in the base 64 using pythonencode string as base64 pythonbase64 encoded to string pythonstring base 64 to bytes pythonbg64 decode pythonpython base64 in stringdecodebase64 python functionhow encode string to base64 and convert it back in pythondecode base 64 string pythonbase64 decoe pythonpython base 64 decodebase64encoding pythonpython code for base64 encodingpython convert to base64b64 encode string pythonconvert base64 file to actual file pythonbase64 in python installconvert base64 in text pythonbase64 b64encode pythonencode string in base64 pythonpython decode64 pythonbase64 to bytes object pythongpython character to base64python base decodebase64 encoded pythonbase64 decode pytohnpython turn a raw directory into base85 encodinghow to encode in python to b64base64 to decimal conversion pythonpython decode 28 27base64 27 29encode string b64 pythonpython decode base64number to base64 pythonpython read string base64pyhton base64base64 encode decose pythonconvert b64 bytes to string pythonbas64 decode in pythondecoding base64 string pythonpython convert to base64 with ascii encodingpython covert to base64convert string into base64 pythonbase32 decode pythondoes encode and decode need base 64 in pythonbyte to base64 in pythonnumbers to base64 pythonbase64 encode python tutorialwhat is base64 in pythonconvert string to python base64python base64 to stringdecode b64 pythonbytes to base64 in pythonpython convert base64url encoding to base64 encodingpython encode base 64base64 python decode to stringbase64 decode python mduepython what is base64pycharm import base64python run base64 codedecode base 91 python3base64 python3 decodepython base64 encode optionpy base64base 64 in pythonbase64 decodestring python3how to base64 encode a python filepython base64 encode passworddecode base64 pythonbase64 a pythonpython base64 modulepython b64what is base64 djangopython 22decode 28 27base64 27 29 22base64 encode decode pythonpython decode base64 stringhow to encode the integer using base64 in pythonpython streaming base64 decodehow to encode and decode a string in python 3 by base64python decode buffer from base64python encoded using base 64base45 decoder for pythonparse base64 encoded strin to query parameter pythonpython base 64 encoder and decoderbase64url to base64 pythonpython b64 encode stringpython base64encode onlinbeimport base64 and decode the database64 b64encode stringbase45 decode pythonpython base64 encode decode stringencode base64 python3python 3 base64 decode to stringbase encode 64 pythonbase 64 encode string pyhtonpython create base64 stringbase64 formula in pythonbase64 encode python to stringbase64 encode in python3 base64 decode pythobpython decode string into bytes base64encode buffer to base64 oython python convert base64 file to binaryconvert file lines from base64 to utf 8 pythonpython base64 encodestring 28base64 decode in python 3base64 encode url pythonpython character encoding to accept base64base64 decodeer pythonconvert frombase64string equivalent in pythondecode base64 pythjonhow to decode base64 pythonbase85 decode pythonpython parse qs base 64 encodedbytes to base64 encoded string pythonimage encode decode python python b64decode to stringpython3 base64 decodepython code to encode base64base64 pythonpython flask decode base64base64 text pythonpython str to base64base64 encode python scriptpython convert html file to base64 stringhow to decode in base64 in pythonhow to convert text to base64 in pythonconvert base64 string to bytes pythonpython base64 decode optionsdecode bas64 encoded pythonbase64 decode in python3encode to base 64 pythonbase64 pytho3python base64 encode to stringbase64 encode password pythonhow to decode base64 command line pythonpython decrypt base64base64 to base 16 pythonstr to base64 pythonbase64 b64encode python stringdecode encoded base64 python codebyte string to base64 pythonbase64 b64decode python 3python base64 b64encode utf 8python2 7 base64 code to python3 base64python bytes decode base 64python turn a raw directory into base64 encodinghow to encode base64 pythonstr decode base64 python onlinebase64 module in pythonsee base64 secert string pythonbase64 b64decode pythonencode base 65 pythonbase64 b64decodebase64 string decode pythonconvertt to base64 pythonuser input 28 29 string convert to base64 pythondecode base64 python scriptbase64 b64encode in python 3from base64 to string pythonencoding base64 a string in pythonpython base64 convert to strdecode a base64 file in pythonurlsafe base 64 encryption in python for module in windows bole dekhoconvet from base 64 to byte pythonbytes to base64 encoding in pythonbase64 urlsafe b64encodedecode base32 pythonbase64 to bytes pythondecode base91 python3what is base64 encode and decode pythonpython base 64 encodingbase64 encodestring 28 29 pythonbase64 decoding pythonbase64 encoded in pythonb64 python decodeconvert text to base64 pythondecode base64 password pythonbase64 python3base64 module to binarydecode base64 string pythonencode decode using base64 pythonhow to binary the string in python using base64 base64 decode pythonndecoding base64 pythonpython base64 encoderencode python string base64how to base64 encode a file with pythonbase 64 text pythonpython base64 decode functionhow to do base64 encoding in pythonbase 64 display pythonbase64 encode program pythonpython from base64python base64 b64encode functionbase64url decode pythonencode base64 with output format pythonpython script base64 encodepytohn 3 9 decode base 64base64 image read decode and encode pythonhow to encode base64 in python 3decode and encode base64 pythonbase64 encoding python exampleconvert bytes to base 64 pythonpython byte to base64python binary to base64base64 python 3base64 to int pythonpython base64 codebase64 encode string pythonbase64 string representation to base64 pythondecode base64 python3base64 encode passpythonencode a string in base64 pythonpython decode string base64base64 parse pythonencode string to base64 string pythonpython base64 to bytespython 3 write decoded based 64 to filehow to encode bytes in base64 pythonpython3 encode base64base64 b64encode 28 29 in pythonpython base64 encode decodebase64 images pythonconvert binary image data to base64 with pythonpython 3 base 64 encodebase64 decode module pythonpython read base64convert to base64 pythonhow to encode base64 python and decodefrom base64 string pythonhow to convert a variable to base64 in pythonbase64 hash python 2 7convert base64 into byteimg pythonbase64 encode bytes pythonpython read base 64how to decode base64 with pythonbase64 encode pythonbase64 decode python 3how to encode the string in the base 64 using python3bytes to base64 string pythonfrom base64 import b64decode 2c b64encode encode 3d b64encode 28msg 29base64 en pythonconvert base64 to binary pythonbase64 decoding python algorithmhow to encode base64 in pythondecoding base64 in pythonconvert python base54 to stringpython base64 b64encode function parameterwhat is base64 pythonis base64 built into pythonread base64 string pythonis base64 a string in pythonhow to decode base64 string in pythonreturn binary base64 decodepython3 base64 encode stringbase64 decode format pythonpython data 3atext 2fplain 3bbase64python decode a base64 stringuse of base64 encode pythonpython base64 decode decode a base64 data to utf 8 pythonpython convert base64 string to byteshow to open base64 in pythonpython base45 encodebase64 decode python algorithmencode string to b64 pythonpython encode to base 64python 3 function converts a character into a list of six 1 27s and 0 27s using base64 encodingdecode base64 to bytes pythinread base64 encoded string pythonhow to encode 2fdecode base64 in pythonpython how to string to base64how to convert base64 data in pythonpython b64 decodebase64 decodepythonencoding base64 strings with pythonpython how to encode string to base64urlb64encode string 7b 7dhow to base64 encode a string in pythonbase64 decrypt pythonpython base64 eocdebase64 b64encodedecrypt string with base64 and cipher in pythonfrom base64 import b64decodedecode to 64 bits pythonpython base64 decode examplepython base64base64 pythonmpython decrypt text from base64base64 encode and decode pythonstring to base64 pythobbase64 2b python 2b b32encodepython decode basee64string encode base64 pythonpython base64 b64encodepython base64 decoderpython base64 decode binarypython base64 encode bytespython base64 encryptbase64 decode python scriptimport 7b decode 7d from base 64encoded in base64 pythonuse decode images in pythonpython base64 encodehow to decode python code with base64 and then run itbase64 encode python3base64 python decodepython base64 variableonline base64 encode pythonbase64 python decodestringbase64 python encodebase64 encode algorithm pythonbase64 convert to file binary in pythonflask base64 encode imagebyte to base64 string pythondecode a base64 url pythonbase4 python apipython read base64 encodingbase64 to byte pythondecode base64 algorithm pythonhow to encrypt text in base64 in pythonbase64 base64 decode error pythonpy base64 how tobase64 b64encode base64 b64decode in python 3 5how to decode base64 string to string pythonbase64 to file pythonencode bytes to base64 pythonpython encode base64 stringhow to decrypt strings in base64 pythonhow to do maths in base64 pydecode compile base64 python codepython3 base64 encodeencode to base64 pythonpython base64 decoderead data from image decode in pythonb64decode pythonbase64 decode pythonbase64 encode line pythonpython basic64 decodehow do you encode data in base64 pythonbase64 encodebytes syntax in pythonhow to encode string using base64 in pythonurlsafe b64encode pythonpython base64 encoded stringcan python base64 decode js base64python base64 encode string passwordpython base64deocdepython read base64 encoded filedoes base64 have encryption in pythonpython base64 string python parse base64base64 string to byte array pythonencode and decode base64 pythonbase64 python decode