Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 519 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 519 Bytes

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"