BasicOIDC/src/utils/crypt_utils.rs

6 lines
114 B
Rust
Raw Normal View History

2022-04-14 16:04:01 +00:00
use digest::Digest;
#[inline]
pub fn sha256(input: &[u8]) -> Vec<u8> {
sha2::Sha256::digest(input).to_vec()
}