Can delete member image
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
//! # App utilities
|
||||
|
||||
pub mod countries_utils;
|
||||
pub mod crypt_utils;
|
||||
pub mod string_utils;
|
||||
pub mod time_utils;
|
||||
|
Reference in New Issue
Block a user