$packed =~ s/^\0+//os;
my $base64_packed = encode_base64($packed, '');
# Don't strip off the trailing padding since it makes the string
$packed =~ s/^\0+//os;
my $base64_packed = encode_base64($packed, '');
# Don't strip off the trailing padding since it makes the string