Skip to content

Output binary buffers as a nice shortened hex string

Notifications You must be signed in to change notification settings

hypercore-cxx/pretty-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Output binary buffers as a nice shortened hex string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages