增加SHA256

This commit is contained in:
xx
2025-03-13 16:56:38 +08:00
parent 472433e7fc
commit 026c8fb666
2 changed files with 12 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ namespace ylib
namespace codec
{
ylib::buffer sha1(const ylib::buffer& data);
ylib::buffer sha256(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);