Add code challenge support

This commit is contained in:
2022-04-14 18:04:01 +02:00
parent 0b64c88fc6
commit 45f125a331
9 changed files with 117 additions and 11 deletions

6
src/utils/crypt_utils.rs Normal file
View File

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

View File

@ -1,4 +1,5 @@
pub mod err;
pub mod time;
pub mod network_utils;
pub mod string_utils;
pub mod string_utils;
pub mod crypt_utils;