mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-08 04:29:54 +00:00
feat: add kugou db decryption logic
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use md5::{Digest, Md5};
|
||||
|
||||
/// Calculate the MD5 hash (non-modified) of a buffer.
|
||||
pub fn md5<T: AsRef<[u8]>>(buffer: T) -> [u8; 16] {
|
||||
Md5::digest(buffer).into()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user