Expand description
Macros for computing SHA1 hashes at compile-time
§Examples
assert_eq!(sha1_hex!("this is a test"), "fa26be19de6bff93f70bc2308434e4a440bbad02");
assert_eq!(sha1_bytes!("this is a test"), hex!("fa26be19de6bff93f70bc2308434e4a440bbad02"));
Macros§
- sha1_
base64 - Computes the SHA1 hash as a base64 unpadded string
- sha1_
bytes - Computes the SHA1 hash as a byte array
- sha1_
hex - Computes the SHA1 hash as a hexadecimal string