zmq2

Function z85_encode

Source
pub fn z85_encode(data: &[u8]) -> Result<String, EncodeError>
Expand description

Encode a binary key as Z85 printable text.

Z85 is an encoding similar to Base64, but operates on 4-byte chunks, which are encoded into 5-byte sequences.

The input slice must have a length divisible by 4.