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 |
#885 in Algorithms
1,051 downloads per month
Used in 6 crates
(3 directly)
12KB
pretty-hash
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
~64KB