Over a million developers have joined DZone.

Base64

·
Simple python script to trnasform std input to base64 encoding


#! /usr/bin/python

import base64
import sys

encoded = base64.b64encode(sys.stdin.read())

print encoded
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}