mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-08 04:29:54 +00:00
[kgm] feat #2: basic kgm support
This commit is contained in:
@@ -1 +1,3 @@
|
||||
pub mod base64;
|
||||
mod md5;
|
||||
pub use md5::md5;
|
||||
|
||||
5
um_crypto/utils/src/md5.rs
Normal file
5
um_crypto/utils/src/md5.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use md5::{Digest, Md5};
|
||||
|
||||
pub fn md5<T: AsRef<[u8]>>(buffer: T) -> [u8; 16] {
|
||||
Md5::digest(buffer).into()
|
||||
}
|
||||
Reference in New Issue
Block a user