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();
|
|||
|
|
|||
|
//<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;
|
|||
|
|
|||
|
};
|