#hash #pretty #hex #string #binary #buffers #nice

pretty-hash

Output binary buffers as a nice, shortened hex string

6 releases

Uses old Rust 2015

0.4.1 Jan 14, 2020
0.4.0 Oct 18, 2018
0.2.0 May 9, 2018
0.1.2 Apr 4, 2018

#277 in Cryptography

Download history 12/week @ 2020-05-29 16/week @ 2020-06-05 21/week @ 2020-06-12 20/week @ 2020-06-19 4/week @ 2020-06-26 20/week @ 2020-07-03 513/week @ 2020-07-10 61/week @ 2020-07-17 139/week @ 2020-07-24 3/week @ 2020-07-31 17/week @ 2020-08-07 22/week @ 2020-08-14 17/week @ 2020-08-21 15/week @ 2020-08-28 33/week @ 2020-09-04 7/week @ 2020-09-11

65 downloads per month
Used in 2 crates

MIT/Apache

12KB

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

Dependencies

~58KB