Crate sha1_macros

Source
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