GrpcPrint/TestClient/utils/CryptHelper.h

19 lines
434 B
C
Raw Normal View History

2024-05-11 17:43:38 +08:00
#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);
};