lailongwei / llbc

一个简洁、高效、跨平台、多语言支持的服务端开发框架,面向Service及Component,底层c++实现。
MIT License
104 stars 33 forks source link

【llbc】LLBC_MD5接口简化 #210

Closed lailongwei closed 1 year ago

lailongwei commented 1 year ago

简化后,接口如下:

LLBC_MD5::Digest(bytes, size); // 取得指定bytes的md5摘要
LLBC_MD5::HexDigest(bytes, size); /取得指定bytes的md5 hex格式 摘要

// =================
// 便利方法:
LLBC_MD5::FileDigest(file); // 取得文件md5摘要
LLBC_MD5::FileHexDigest(file); // 取得文件md5 hex格式 摘要