sha256

Macro sha256 

Source
macro_rules! sha256 {
    ($($tt:tt)*) => { ... };
}
Expand description

Calc SHA256 hash.

You should add sha2 = "0.10" to your Cargo.toml.

Just a shortcut for calc_hash!(SHA256: ...), see [calc_hash] for more details. Here are some examples:

// General usage, multiple params supported
sha256!("hello", "world")
// Iterator is supported
sha256!(ITER => ["hello", "world"])
// Uppercase
sha256!(UPPERCASE => "hello", "world")
// Combine them
sha256!(UPPERCASE; ITER => ["hello", "world"])