rust chksum-md5库 实现获取文件md5值

180it 2024-03-02 PM 1818℃ 0条
[dependencies]
chksum-md5 = "0.0.0"



use chksum_md5 as md5;

let file = File::open(path)?;
let digest = md5::chksum(file)?;
assert_eq!(
    digest.to_hex_lowercase(),
    "5c71dbb287630d65ca93764c34d9aa0d"
);
支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

rust chksum-md5库 实现获取文件md5值