light-openid 2.0.0

Lightweight OpenID primitives & client
Documentation
1
2
3
4
5
6
7
use sha2::Digest;

/// Compute s256 digest of a string
#[inline]
pub(crate) fn sha256(input: &[u8]) -> Vec<u8> {
    sha2::Sha256::digest(input).to_vec()
}