User Tools

Site Tools


howtos:de-base64

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.

howtos/de-base64.txt · Last modified: 02/12/2018 20:34 by 127.0.0.1