Hexadecimal encoding. The sodium_bin2hex() function converts the bytes stored at bin into a hexadecimal string.
It evaluates in constant time for a given size. hex will receive a terminating null character
NoGcException, if hex.length != 2*bin.length+1 or bin.length >= size_t.max/2
https://download.libsodium.org/doc/helpers#hexadecimal-encoding-decoding
See Implementation
Hexadecimal encoding. The sodium_bin2hex() function converts the bytes stored at bin into a hexadecimal string.
It evaluates in constant time for a given size. hex will receive a terminating null character