#decode #encode #mechanism #z85

z85

Rust implementation of ZeroMQ's Z85 encoding mechanism with padding

17 stable releases (3 major)

3.0.6 Feb 4, 2025
3.0.5 Apr 12, 2022
3.0.4 Oct 27, 2021
3.0.3 Jul 23, 2021
0.1.3 Jun 9, 2015

#150 in Encoding

Download history 22796/week @ 2024-12-16 12532/week @ 2024-12-23 16744/week @ 2024-12-30 27498/week @ 2025-01-06 25984/week @ 2025-01-13 23522/week @ 2025-01-20 22778/week @ 2025-01-27 31968/week @ 2025-02-03 26478/week @ 2025-02-10 23445/week @ 2025-02-17 30175/week @ 2025-02-24 32551/week @ 2025-03-03 33808/week @ 2025-03-10 34492/week @ 2025-03-17 35102/week @ 2025-03-24 40695/week @ 2025-03-31

146,047 downloads per month
Used in 41 crates (11 directly)

MIT/Apache

13KB
244 lines

Rust implementation of ZeroMQ's Z85 encoding mechanism.


Rust library of Z85, ZEROMQ's binary-to-text encoding mechanism. https://rfc.zeromq.org/spec:32/Z85/

Starting from 3.0 version, this library adds padding support, which makes it not fully compatible with ZeroMQ's RFC.

Here is how padding works: 85^5 is bigger than 2^32, therefore a five-byte Z85 data chunk cannot start with '#'. Count of this char sets how many bytes are missing from the tail chunk.

No runtime deps