Perl script to decode a base64 encoded input

#!/usr/bin/perl -w 
use MIME::Base64;
print "\n";
foreach (@ARGV) {
  print decode_base64("$_");
  print "\n\n";
}

The script take the base64 encoded input as a parameter and output the result. Like this:

de-base64.pl ZW5jb2RlZC1iYXNlNjQtdGV4dA==

encoded-base64-text

Perl script to encode input to base64

#!/usr/bin/perl -w 
use MIME::Base64;
print "\n";
foreach (@ARGV) {
  print encode_base64("$_");
  print "\n\n";
}

It is run the same way as de-base64.pl.

 
indexes/de-base64.txt · Last modified: 2009/06/05 13:33 by domingo
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki