21 lines
439 B
C++
21 lines
439 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
|
|
|
|
class CryptHelper
|
|
{
|
|
public:
|
|
CryptHelper();
|
|
~CryptHelper();
|
|
|
|
static int Base64DecodeWrap(string str, unsigned char** out);
|
|
|
|
static int AesDecode(unsigned char* ct, int ctLength, unsigned char* key, int keyLength, unsigned char* iv, int ivLength, unsigned char* tag, int tagLength,unsigned char** out);
|
|
|
|
static string DesEncode(string str, string strkey);
|
|
};
|
|
|