base64 encoding



$file a.out
a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
$base64 a.out > ascii.txt
$tail -n 5 -f ascii.txt
X19lcnJub19sb2NhdGlvbkBAR0xJQkNfMi4yLjUAX19ic3Nfc3RhcnQAX19nY292X3dyaXRlX3N1
bW1hcnkAX19nY292X3JlYWRfY291bnRlcgBzdHJjcHlAQEdMSUJDXzIuMi41AF9lbmQAZmNsb3Nl
QEBHTElCQ18yLjIuNQBzdGRlcnJAQEdMSUJDXzIuMi41AGFjY2Vzc0BAR0xJQkNfMi4yLjUAZndy
aXRlQEBHTElCQ18yLjIuNQBfZWRhdGEAZnByaW50ZkBAR0xJQkNfMi4yLjUAZmNudGxAQEdMSUJD
XzIuMi41AG9wZW5AQEdMSUJDXzIuMi41AG1rZGlyQEBHTElCQ18yLjIuNQBtYWluAF9pbml0AA==
^C
$tail -n 5 -f a.out
@
@
@.
@>
@N
@^
@n

That was a peice from a.out may be not exactly 5 lines.

Base64 is a group of similar encoding schemes that represent binary
data in an ASCII string format by translating it into a radix-64
representation. The Base64 term originates from a specific MIME
content transfer encoding.
Reference/Source :
http://en.wikipedia.org/wiki/Base64

 

Leave a Reply

Your email address will not be published. Required fields are marked *