그냥저냥

Base64 Encoding/Decoding 본문

Dev./Python

Base64 Encoding/Decoding

ex3llo 2016. 7. 31. 03:58

<소스 코드>


import sys

data = sys.argv[1]

# Base64 Encoding
encodeStr = data.encode('base64')		
print "encoded string : ", encodeStr

# Base64 Decoding
decodeStr = encodeStr.decode('base64')	
print "decoded string : ", decodeStr




<결과>



'Dev. > Python' 카테고리의 다른 글

Win32 라이브러리 API 주소  (0) 2017.01.04
VirusTotal 조회 자동화 (Used API)  (0) 2016.12.28
HTTP 웹 Request 코드 (임시)  (0) 2016.12.28
Socket 통신 예제 (Server / Client)  (0) 2016.07.31
MD5 Hash  (0) 2016.07.31
Comments