sha1_bytes!() { /* proc-macro */ }
Expand description
Computes the SHA1 hash as a byte array
The resulting value is of type [u8; 20]
.
assert_eq!(sha1_bytes!("this is a test"), hex!("fa26be19de6bff93f70bc2308434e4a440bbad02"));
sha1_bytes!() { /* proc-macro */ }
Computes the SHA1 hash as a byte array
The resulting value is of type [u8; 20]
.
assert_eq!(sha1_bytes!("this is a test"), hex!("fa26be19de6bff93f70bc2308434e4a440bbad02"));