⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 em_aes.h

📁 c++的基于openssl实现的简单aes文件加密类
💻 H
字号:
#ifndef EM_AES_H_#define EM_AES_H_#include <openssl/md5.h>#include <openssl/aes.h>#include <openssl/evp.h>#include <iostream>#include <string>#include <fstream>#include "config.h"using namespace std;struct EM_AESFILE{	string filename;	int    padsize;};class EM_AES{public:	EM_AES();	virtual ~EM_AES();	void set_key(const string &);	string get_key_str();		struct EM_AESFILE encrypt(const string & inputfile);	void decrypt(struct EM_AESFILE & em_aesfile);	private:	void _init_key(int);		AES_KEY m_aes_key;	static unsigned char m_key[];	static string m_key_str;	};#endif /*EM_AES_H_*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -