Output binary buffers as a nice, shortened hex string.
Switch branches/tags
Nothing to show
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
src
tests
.gitignore
.travis.yml
CERTIFICATE
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
rustfmt.toml

README.md

pretty-hash

crates.io version build status downloads docs.rs docs

Output binary buffers as a nice, shortened hex string. Adapted from pfrazee/pretty-hash.

Usage

extern crate pretty_hash;

let hash = pretty_hash::fmt(b"1234").unwrap();
assert_eq!(hash, "31323334");

let hash = pretty_hash::fmt(b"12345").unwrap();
assert_eq!(hash, "313233..35");

Installation

$ cargo add pretty-hash

License

MIT OR Apache-2.0