ZMQ_Z85_DECODE(3)
π ZMQ_Z85_DECODE(3) π
okay bestie, welcome to the 0MQ Manual β we're decoding some Z85 up in here and it's gonna be adorable. π
β¨ NAME β¨
zmq_z85_decode β decode a binary key from Z85 printable text π¦
πΈ SYNOPSIS πΈ
uint8_t *zmq_z85_decode (uint8_t *dest, const char *string);
π DESCRIPTION π
so like. zmq_z85_decode() shall decode string into dest. that's the whole job, bestie, and it eats. π
the length of string shall be divisible by 5. no exceptions, no vibes-based math, it's giving strict. π
and dest must be large enough for the decoded value β which is 0.8 x strlen (string). size it right or suffer the consequences, iykyk. π
the encoding shall follow the ZMQ RFC 32 specification. periodt. β
π RETURN VALUE π
zmq_z85_decode() shall return dest if successful. and if it's not successful? it shall return NULL. that's it, that's the whole mood. π
π₯ EXAMPLE π₯
decoding a CURVE key, because we love a cryptographic moment:
const char decoded [] = "rq:rM>}U?@Lns47E1%kR.o@n%FcmmsL/@{H8]yf7";
uint8_t public_key [32];
zmq_z85_decode (public_key, decoded);
ate. no crumbs. β¨
π SEE ALSO π
π«Ά AUTHORS π«Ά
this page was written by the 0MQ community. if you wanna make a change, please read the 0MQ Contribution Policy at http://www.zeromq.org/docs:contributing π
and that's the tea, bestie β this whole manual page came to you from 0MQ 4.3.5, dated 10/09/2023, under the name ZMQ_Z85_DECODE(3). slay, bye π β¨
π¦ where this page comes from
- epel 10: zeromq 4.3.5-18.el10_0 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 43: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 43: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 44: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 44: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms