macro_rules! sha512 {
($($tt:tt)*) => { ... };
}
Expand description
Calculate SHA512 hash.
You should add sha2 = "0.10"
to your Cargo.toml
.
Just a shortcut for calc_hash!(SHA512: ...)
, see [calc_hash
] for more
details. Here are some examples:
// General usage, ultiple params supported
sha512!("hello", "world")
// Iterator is supported
sha512!(ITER => ["hello", "world"])
// Uppercase
sha512!(UPPERCASE => "hello", "world")
// Combine them
sha512!(UPPERCASE; ITER => ["hello", "world"])