반응형
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'
>>>
반응형
'python' 카테고리의 다른 글
| python anagram --- timeit 실행시간 확인 (0) | 2014.08.24 |
|---|---|
| python 으로 github api v3 접근하기 -- httplib (0) | 2014.08.22 |
| PyGithub 으로 github 주무르기 (0) | 2014.08.21 |
| python ; == , is 차이점 , id, integer caching, string interning (0) | 2014.08.05 |
| Django 타임존 설정 (0) | 2014.07.30 |


