Base64 in Python: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Python Code Examples")
 
Line 1: Line 1:
=Internal=
=Internal=
* [[Python_Code_Examples#Code_Examples|Python Code Examples]]
* [[Python_Code_Examples#Code_Examples|Python Code Examples]]
=Overview=
<syntaxhighlight lang='py'>
import base64
binary_data = ...
c = base64.b64encode(binary_data).decode('utf-8')
</syntaxhighlight>

Revision as of 21:08, 2 March 2022

Internal

Overview

import base64
binary_data = ...
c = base64.b64encode(binary_data).decode('utf-8')