OLLS: OpenSSL Base64 En/Decoding
Posted: August 16th, 2009 | Author: Matt | Filed under: One Liners | Tags: back to basics, crypto, One Liners | 1 Comment »One Line Life Saver:
Found this while checking out the latest news of Twitter being used as a C&C centre for a botnet.
cat yourfile.txt | openssl base64 -e > newfile.enc
This will take yourfile.txt and base64 encode the file into a new file newfile.enc. You can then switch it around and use -d to decode your encoded file back. Very simple encoding / decoding if you want to send a simple file across to someone and not send it in clear text.