"Sputnik" help  
Sputnik Help
BinaryDecode25(<string>,[<isCompressed>)

Description

Decodes a base-25 encoded string back into its original binary form.

Parameters

<string> The base-25 encoded string to decode.
<isCompressed> Optional specifies whether the encoded string is compressed. (Default: false)

Return Value

Success: Returns the decoded binary string..
Failure: Returns an empty binary string.

Remarks

The BinaryDecode25 function reverses the encoding process of BinaryEncode25, converting a base-25 encoded string back into its original binary form. If the encoded string was compressed, set the <isCompressed> parameter to true to properly decode the compressed data.

Related

BinaryEncode25

Example

Example of usage:

my $binary = "Hello World";
my $encoded = BinaryEncode25($binary);
say $encoded;
my $decoded = BinaryDecode25($encoded);
say $decoded;
my $compressed = BinaryEncode25($binary, true);
say $compressed;
my $decompressed = BinaryDecode25($compressed, true);
say $decompressed;
// PRINTS
// CWEBEIEIELBHDMELEOEIEA
// Hello World
// BGFOAIAAAAAAAAAAAEAAJSCWIFIBIBDMAIIHBWICCXABAADLHCAXCYALAAAAAA
// Hello World

 


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