//EnDecrypt.h 头文件
#include
//文件加解密接口
bool EncryptFile(std::wstring strFileName, std::wstring strFileEn);
bool DecryptFile(std::wstring strFileName, std::wstring strFileDe);
//bool DecryptSqliteFile(std::wstring strFileName, std::wstring strFileDe);
//内存加解密接口
bool SimpleEncode(char*pPlain,int nPlainLen,char*& pEncode,int& nEncodeLen);
bool SimpleDecode(char* pEncode,int nEncodeLen,char*& pPlain,int& nPlainLen);
//读写文件辅助函数
char * ReadFileBytes(std::wstring strFileName, int & size);
bool WriteFileBytes(std::wstring strFileName, char * lpdata, int size);
//算法辅助函数
char ByteInvert(char c );
char* Reverse(char* aStr,int nLen);
//EnDecrypt.cpp 文件
#include "EnDecrypt.h"
#include
char * ReadFileBytes(std::wstring strFileName, int & size)
{
HANDLE hFile = ::CreateFile(strFileNa