+22
LICENSE.md
+22
LICENSE.md
···
+95
README.md
+95
README.md
···
+4
bin/dune
+4
bin/dune
+32
bin/roguedoi.ml
+32
bin/roguedoi.ml
···
+32
crockford.opam
+32
crockford.opam
···+"An OCaml implementation of Douglas Crockford's Base32 encoding with ISO 7064 checksum support. Provides encoding and decoding of int64 values to URI-friendly base32 strings, with optional checksum validation, padding, splitting, and random ID generation."
+26
dune-project
+26
dune-project
···
+177
lib/crockford.ml
+177
lib/crockford.ml
···
+89
lib/crockford.mli
+89
lib/crockford.mli
···+(** [encode ?split_every ?min_length ?checksum n] encodes an int64 to a Crockford base32 string.+@raise Decode_error if decoding fails (invalid characters, invalid checksum format, or checksum mismatch) *)
+211
test/test_crockford.ml
+211
test/test_crockford.ml
···+let test_name = Printf.sprintf "encode %Ld (split=%d, len=%d, checksum=%b)" input split_every length checksum in+let test_name = Printf.sprintf "generate length=%d split=%d checksum=%b" length split_every checksum in