pretty-hash

Crates.iopretty-hash
lib.rspretty-hash
version0.4.1
sourcesrc
created_at2018-04-04 00:43:41.933047
updated_at2020-01-14 17:20:35.304907
descriptionOutput binary buffers as a nice, shortened hex string.
homepage
repositoryhttps://github.com/datrs/pretty-hash
max_upload_size
id58869
size29,442
Maintainers (github:datrs:maintainers)

documentation

https://docs.rs/pretty-hash

README

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

Commit count: 20

cargo fmt