DPS/include/SqlcipherTool.h

25 lines
479 B
C
Raw Normal View History

2025-06-23 10:41:33 +08:00
#pragma once
#include <iostream>
#include <string>
#include "sqlite3.h"
#define ODI __declspec(dllexport)
class SqlcipherTool
{
public:
ODI SqlcipherTool();
ODI ~SqlcipherTool();
//<2F><><EFBFBD><EFBFBD>
ODI int encryption(std::string src, std::string dst, std::string key, std::string& msg);
//<2F><><EFBFBD><EFBFBD>
ODI int decrypt(std::string src, std::string dst, std::string key, std::string& msg);
private:
//ִ<><D6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int doExec(std::string execode, std::string& msg);
sqlite3* db = nullptr;
};