Crate pretty_hash [−] [src]
pretty-hash
[][2] [
][4]
[
][6] [
]8
Output binary buffers as a nice, shortened hex string. Adapted from pfrazee/pretty-hash.
Usage
extern crate pretty_hash; use pretty_hash::PrettyHash; fn main() { let hash = PrettyHash::fmt(b"1234").unwrap(); assert_eq!(hash, "31323334"); let hash = PrettyHash::fmt(b"12345").unwrap(); assert_eq!(hash, "313233..35"); }
Installation
$ cargo add pretty-hash
License
MIT OR Apache-2.0
Structs
PrettyHash |
Pretty hash representation. |