mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
6 lines
119 B
Rust
6 lines
119 B
Rust
#[inline]
|
|
pub fn md5<T: AsRef<[u8]>>(data: T) -> String {
|
|
let md5 = format!("{:x}", md5::compute(data));
|
|
md5
|
|
}
|