Skip to main content

sha1

Function sha1 

Source
pub fn sha1(data: &[u8]) -> [u8; 20]
Expand description

Compute the SHA-1 of data. Returns the 20-byte digest.

let d = kevy_lua::sha1::sha1(b"");
assert_eq!(d[..4], [0xda, 0x39, 0xa3, 0xee]);