In [2]:
Str = "this is string example....wow!!!";
Str = "00000000"
Str = Str.encode('base64','strict');

print "Encoded String: " + Str
print "Decoded String: " + Str.decode('base64','strict')


Encoded String: MDAwMDAwMDA=

Decoded String: 00000000

In [ ]: