MIME::Base64 - Encode and decode to base64 format
The MIME::Base64 module allows you to encode your data into base64 format.
# Loading modules and importing functions use MIME::Base64 qw/encode_base64 decode_base64/;
Use the encode_base64 function to encode to base64 format.
# Encode to base64 format my $b64_data = encode_base64 $data;
Use the decode_base64 function to decode base64 format data.
# Decode base64 format data my $data = decode_base64 $b64_data;
FAQ about MIME::Base64 module
Q. What is the base64 format in a nutshell?
A. This is a data format that uses only 64 alphanumeric characters. From a usage point of view, it is used to convert binary data and multi-byte strings to alphanumeric characters only. For example, e-mail cannot exchange data other than 7-bit strings. In such a case, convert binary data such as attachments to base64 format.