NAME

Convert::Z85 - Encode and decode Z85 strings

SYNOPSIS

use Convert::Z85;

my $encoded = encode_z85($data);
my $decoded = decode_z85($encoded);

DESCRIPTION

An implementation of the Z85 encoding scheme (as described in ZeroMQ spec 32) for encoding binary data as plain text.

Modelled on the PyZMQ implementation.

This module uses Exporter::Tiny to export two functions by default: "encode_z85" and "decode_z85".

encode_z85

encode_z85($data);

Takes binary data (in 4-byte chunks padded with trailing zero bytes if necessary) and returns a Z85-encoded text string.

decode_z85

decode_z85($encoded);

Takes a Z85 text string and returns the original binary data.

SEE ALSO

Convert::Ascii85

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>