Output binary buffers as a nice shortened hex string
This module is designed to work with the datcxx
build tool. To add this
module to your project us the following command...
build add datcxx/pretty-hash
#include "../deps/datcxx/libsodium/index.hxx"
#include "../deps/datcxx/pretty-hash/index.hxx"
auto bytes = Hyper::Sodium::randomBytes(32);
auto pretty = Hyper::Util::prettyHash(bytes);
// pretty => "0b0a97..f3"