Files
SauvegardePST/Perl/bin/encode-base64
2025-08-27 09:03:01 +02:00

14 lines
248 B
Perl

#!/usr/bin/perl
use MIME::Base64 qw(encode_base64);
my $buf = "";
while (<>) {
$buf .= $_;
if (length($buf) >= 57) {
print encode_base64(substr($buf, 0, int(length($buf) / 57) * 57, ""));
}
}
print encode_base64($buf);