To do this you'll need perl (should be installed on most linux distros). Given any file containing only Base64 encoded text, ex:
$ file base64_fileThe following command will decode the text:
base64_file: ASCII text, with CRLF line terminators
$
(NOTE - the file must contain ONLY Base64 encoded text - any existing decoded data will break the process)
$ perl -MMIME::Base64 -e 'print decode_base64(join("",<>))' < base64_file >outputIf done correctly the output file should contain the decoded data.
$ file output
output: HTML document, ASCII text, with CRLF line terminators
$
No comments:
Post a Comment