BasicOIDC/src/utils/crypt_utils.rs

7 lines
115 B
Rust

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