Skip to main content

hex

Function hex 

Source
pub fn hex(digest: &[u8; 20]) -> [u8; 40]
Expand description

Format a 20-byte SHA-1 digest as 40 lowercase ASCII hex chars.

let mut d = [0u8; 20];
d[0] = 0xAB;
assert_eq!(&kevy_lua::sha1::hex(&d)[..4], b"ab00");