/pretty-hash

Output binary buffers as a nice shortened hex string

Primary LanguageC++

SYNOPSIS

Output binary buffers as a nice shortened hex string

USAGE

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

EXAMPLE

#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"