Quantcast
Channel: Linuxindetails's Blog » Perl
Viewing all articles
Browse latest Browse all 12

Decoding base64 encoded files attached to mail

$
0
0

To decode base64 encoded files attached to mail, there are several tools available.

base64 is a command-line utility tool.

To decode it :

fool@localhost:~$ base64 -di < input_file

where -d : decoding data and -i : ignore non-alphabet characters

This Perl one-liner can do the job as well :

fool@localhost:~$ perl -MMIME::Base64 -ne ‘print decode_base64($_) < input_file

 

 



Viewing all articles
Browse latest Browse all 12

Latest Images

Trending Articles





Latest Images