Can delete member image

This commit is contained in:
2023-08-07 11:07:24 +02:00
parent c27ed56b8a
commit c6148f6562
14 changed files with 555 additions and 14 deletions

View File

@ -0,0 +1,9 @@
use sha2::{Digest, Sha512};
/// Compute hash of a slice of bytes
pub fn sha512(bytes: &[u8]) -> String {
let mut hasher = Sha512::new();
hasher.update(bytes);
let h = hasher.finalize();
format!("{:x}", h)
}

View File

@ -1,5 +1,6 @@
//! # App utilities
pub mod countries_utils;
pub mod crypt_utils;
pub mod string_utils;
pub mod time_utils;