ZMQ\_Z85\_DECODE(3) 0MQ Manual ZMQ\_Z85\_DECODE(3)

# [NAME](#NAME)

zmq\_z85\_decode - decode a binary key from Z85 printable text

# [SYNOPSIS](#SYNOPSIS)

**uint8\_t \*zmq\_z85\_decode (uint8\_t \*dest, const char \*string);**

# [DESCRIPTION](#DESCRIPTION)

The *zmq\_z85\_decode()* function shall decode *string* into *dest*. The length of *string* shall be divisible by 5. *dest* must be large enough for the decoded value (0.8 x strlen (string)).

The encoding shall follow the ZMQ RFC 32 specification.

# [RETURN VALUE](#RETURN_VALUE)

The *zmq\_z85\_decode()* function shall return *dest* if successful, else it shall return NULL.

# [EXAMPLE](#EXAMPLE)

**Decoding a CURVE key**.

```
const char decoded [] = "rq:rM>}U?@Lns47E1%kR.o@n%FcmmsL/@{H8]yf7";
uint8_t public_key [32];
zmq_z85_decode (public_key, decoded);
```

# [SEE ALSO](#SEE_ALSO)

[**zmq\_z85\_decode**(3)](/man/os/zeromq/zmq_z85_decode.3) [**zmq\_curve\_keypair**(3)](/man/os/zeromq/zmq_curve_keypair.3) [**zmq\_curve\_public**(3)](/man/os/zeromq/zmq_curve_public.3) [**zmq\_curve**(7)](/man/os/zeromq/zmq_curve.7)

# [AUTHORS](#AUTHORS)

This page was written by the 0MQ community. To make a change please read the 0MQ Contribution Policy at **http://www.zeromq.org/docs:contributing**.

10/24/2026 0MQ 4.3.5

---

Document: zmq_z85_decode(3) from zeromq 4.3.5-r14 (Chainguard OS)
Source: https://github.com/zeromq/libzmq
