base64 encoding , decoding

python 2014. 8. 21. 22:21
반응형

base64 encoding, decoding



참고 : https://docs.python.org/2/library/base64.html



 
>>> import base64
>>>
>>> encoded = base64.b64encode('data to be encoded')   # encoding
>>> encoded
'ZGF0YSB0byBiZSBlbmNvZGVk'
>>>
>>> data = base64.b64decode(encoded)          # decoding
>>> data
'data to be encoded'
>>>




반응형
Posted by 자유프로그램
,