Python Tutorial

Friday, October 19, 2012

python base64 encode decode


Python base64 encode decode is very simple. Lets see a sample code

 
import base64
encoded = base64.b64encode('life is very easy with python')
print encoded
data = base64.b64decode(encoded)
print data


Output:
bGlmZSBpcyB2ZXJ5IGVhc3kgd2l0aCBweXRob24=
life is very easy with python

0 comments:

Post a Comment