Base64 Encode and decode :
Python 3 (and 2) import base64 a = 'U2VuZCByZWluZm9yY2VtZW50cw==\n' b = base64.b64decode(a) c = base64.b64encode(b)
print b
print c
Output:
Send reinforcements
U2VuZCByZWluZm9yY2VtZW50cw==
This blog is about solutions for PHP,Python,JavaScript,j query,HTML,CSS and Ubuntu.
Python 3 (and 2) import base64 a = 'U2VuZCByZWluZm9yY2VtZW50cw==\n' b = base64.b64decode(a) c = base64.b64encode(b)
print b
print c
Comments
Post a Comment