Base64 encoding and Decoding in Python…

 Base64 encoding

import base64

page=”spmethingsadasd”

a=base64.b64encode(the_page)

print a

Base64 decoding in Python:

import base64

b=base64.b64decode(a)

print b

This entry was posted on Thursday, July 31st, 2008 at 2:07 am and is filed under Python. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Post a Comment