Skip to main content

hex_encode

Function hex_encode 

Source
pub fn hex_encode(bytes: &[u8]) -> String
Expand description

Lower-case hex encoding of a byte slice.

Replaces the format!("{:x}", Sha256::digest(...)) idiom, which broke when sha2 0.11 changed the digest output type to hybrid_array::Array, which does not implement LowerHex.