Perl : encode_base64(String)

Encode a string into Base64 format.


Function

encode_base64( $bytes, $eol );

Parameters

$bytes - String to be encoded.
$eol - The line-ending sequence to use. It is optional and defaults to '\n'.

Return value

The returned encoded string is broken into lines of no more than 76 characters each and it will end with $eol unless it is empty.

Example

use MIME::Base64;
$text = 'base64 string';
$encoded = encode_base64($text);

Home Page Base64encode List Privacy Policy About Us Contact

This website uses cookies to enhance your experience, personalize content and ads, and analyze our traffic.

©2025 Design by base64encodeonl.com