25 lines
479 B
C++
25 lines
479 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
#include "sqlite3.h"
|
|
|
|
#define ODI __declspec(dllexport)
|
|
|
|
class SqlcipherTool
|
|
{
|
|
public:
|
|
ODI SqlcipherTool();
|
|
ODI ~SqlcipherTool();
|
|
|
|
//加密
|
|
ODI int encryption(std::string src, std::string dst, std::string key, std::string& msg);
|
|
//解密
|
|
ODI int decrypt(std::string src, std::string dst, std::string key, std::string& msg);
|
|
private:
|
|
//执行命令
|
|
int doExec(std::string execode, std::string& msg);
|
|
sqlite3* db = nullptr;
|
|
|
|
};
|