BasicOIDC/src/utils/crypt_utils.rs

7 lines
115 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()
2022-11-11 11:26:02 +00:00
}