[code.view]

[top] / python / PyMOTW / base64 / base64_b64decode.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     import base64
     
     original_string = 'This is the data, in the clear.'
     print 'Original:', original_string
     
     encoded_string = base64.b64encode(original_string)
     print 'Encoded :', encoded_string
     
     decoded_string = base64.b64decode(encoded_string)
     print 'Decoded :', decoded_string
     

[top] / python / PyMOTW / base64 / base64_b64decode.py

contact | logmethods.com