I searched and didn't find, and had to figure stuff out... I hope to save you the trouble.

Thursday, April 23, 2009

Use python to decode base64 data

Whether it's data you copy/paste into the shell, or you want to use piped commands, you can decode base64 data from stdin and send it to stdout with:
python -c 'import sys,base64; base64.decode(sys.stdin,sys.stdout)'

No comments:

Post a Comment

Followers