增加SHA25hmac

This commit is contained in:
xx
2025-03-13 17:11:49 +08:00
parent 026c8fb666
commit 0e13205fce
2 changed files with 14 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ namespace ylib
{
ylib::buffer sha1(const ylib::buffer& data);
ylib::buffer sha256(const ylib::buffer& data);
ylib::buffer ylib::codec::hmac_sha256(const ylib::buffer& key, const ylib::buffer& data);
std::string md5(const ylib::buffer& data);
std::string to_utf8(const std::string& gbk);
std::string to_gbk(const std::string& utf8);