Hexadecimal encoding and decoding with a low footprint and a clean API.
Find a file
2024-03-14 21:54:11 +01:00
CHANGES.md changes for 0.1.0 2024-03-14 21:44:22 +01:00
dune minor fixes, add tests 2024-03-14 20:55:37 +01:00
dune-project initial commit 2024-03-14 13:04:14 +01:00
LICENSE.md minor 2024-03-14 21:53:38 +01:00
ohex.ml avoid whitespace if none needed 2024-03-14 21:22:14 +01:00
ohex.mli minor fixes, add tests 2024-03-14 20:55:37 +01:00
ohex.opam minor 2024-03-14 21:54:11 +01:00
README.md minor 2024-03-14 13:14:34 +01:00
tests.ml encode and encode_into tests 2024-03-14 21:14:35 +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.