mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
添加Openssl,Gmssl加密库
This commit is contained in:
@@ -16,6 +16,10 @@ using namespace std;
|
||||
class Utils
|
||||
{
|
||||
public:
|
||||
static std::string toHex(std::vector<unsigned char>& s, int len = 0);
|
||||
static std::string toHex(const std::string& s);
|
||||
static std::string fromHex(const std::string& hexstr);
|
||||
|
||||
static string toStr(int v);
|
||||
static string toStr(float v, int precision = 2);
|
||||
static string toStr(double v, int precision = 2);
|
||||
@@ -85,8 +89,6 @@ public:
|
||||
static void split(string buf, string c, vector<string>& res);
|
||||
|
||||
static std::string readFile(std::string filename);
|
||||
|
||||
static std::string toHexStr(int64_t val);
|
||||
};
|
||||
|
||||
class TimeTick
|
||||
|
||||
Reference in New Issue
Block a user