Hexadecimal encoding and decoding with a low footprint and a clean API.
Find a file
2024-03-14 13:20:27 +01:00
CHANGES.md initial commit 2024-03-14 13:04:14 +01:00
dune initial commit 2024-03-14 13:04:14 +01:00
dune-project initial commit 2024-03-14 13:04:14 +01:00
LICENSE.md initial commit 2024-03-14 13:04:14 +01:00
ohex.ml Hoist out skip_whitespace branching in count_hex_chars 2024-03-14 13:20:27 +01:00
ohex.mli minor 2024-03-14 13:14:34 +01:00
ohex.opam initial commit 2024-03-14 13:04:14 +01:00
README.md minor 2024-03-14 13:14:34 +01:00

oHEX

This package with minimal dependency cone provides functionality to decode and encode strings into hexadecimal representation.

As example, Ohex.decode "4142" = "AB". And Ohex.encode "AB" = "4142".

There's even the property, for all strings s: Ohex.(decode (encode s)) = s.

A pretty-printer is provided as well.