1 Star 0 Fork 22

iniwf / TdxTradeServer

forked from 老张 / TdxTradeServer 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
tts_encrypt.h 627 Bytes
Copy Edit Raw Blame History
RainX(Jing Xu) authored 2017-08-18 17:21 . add aes and encrypt
#ifndef TTS_ENCRYPT_H
#define TTS_ENCRYPT_H
#include "tts_setting.h"
#include "aes.h"
using namespace std;
/**
* @brief The TTS_Encrypt class 使用AES_128_CBC进行加密 zeropadding...
*
*/
class TTS_Encrypt
{
private:
unsigned char key[16];
unsigned char iv[16];
AESModeOfOperation moo;
public:
TTS_Encrypt(TTS_SettingObject so);
~TTS_Encrypt();
// 进行加密
string encryptString(const string plaintext);
// 进行解密
string decryptString(const string enctext);
string toBase64(const string input);
string fromBase64(const string input);
};
#endif // TTS_ENCRYPT_H
C++
1
https://gitee.com/iniwf/TdxTradeServer.git
git@gitee.com:iniwf/TdxTradeServer.git
iniwf
TdxTradeServer
TdxTradeServer
master

Search