mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-07 20:19:51 +00:00
[kgm] feat #2: basic kgm support
This commit is contained in:
@@ -5,3 +5,5 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
base64 = "0.22.1"
|
||||
itertools = "0.13.0"
|
||||
md-5 = "0.10.6"
|
||||
|
||||
@@ -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