"Sputnik" help  
Sputnik Help
BinaryEncode64(<binary>)

Description

Encodes the given binary data into a Base64 representation.

Parameters

<binary> The binary data to be encoded.

Return Value

Success: Returns a string representing the Base64 encoded data..
Failure: Returns an empty string.

Remarks

The BinaryEncode64 function encodes the given binary data using the Base64 encoding scheme. The resulting encoded data is returned as a string.

Please note that the Base64 encoding is not an encryption method, but rather a representation of binary data in a format that only includes a restricted set of characters for easy sharing and storage.

It's important to ensure that the encoding and decoding operations are performed consistently and with the correct functions to maintain the integrity of the data.

Related

BinaryDecode64

Example

Example of usage:

my $binary = "Hello World";
my $encoded = BinaryEncode64($binary);
say $encoded;
my $decoded = BinaryDecode64($encoded);
say $decoded;
// PRINTS
// SGVsbG8gV29ybGQ=
// Hello World

Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org