6 lines
114 B
Rust
6 lines
114 B
Rust
|
use digest::Digest;
|
||
|
|
||
|
#[inline]
|
||
|
pub fn sha256(input: &[u8]) -> Vec<u8> {
|
||
|
sha2::Sha256::digest(input).to_vec()
|
||
|
}
|