Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
Convert::Z85 - Encode and decode Z85 strings
SYNOPSIS
use Convert::Z85;
my $encoded = encode_z85($binarydata);
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". Exporter::Tiny provides flexible import options; look there for details.
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.
Padding is left up to the application, per the spec.
decode_z85
decode_z85($encoded);
Takes a Z85 text string and returns the original binary data.
Throws a stack trace if invalid data is encountered.
SEE ALSO
AUTHOR
Jon Portnoy <avenj@cobaltirc.org>