encryption_i.h
来自「可选择硬盘中的特定文件加密解密」· C头文件 代码 · 共 15 行
H
15 行
#pragma once
#include <windows.h>
class EncryptionInterface
{
public:
EncryptionInterface(const char *pwd) { strncpy(_encryptionKey, pwd, 99); _encryptionKey[99] = 0; }
virtual ~EncryptionInterface() { ZeroMemory(_encryptionKey, 100); }
virtual DWORD encryptStream(const char *plain, const DWORD size, char *cipher) = 0;
virtual DWORD decryptStream(const char *cipher, const DWORD size, char *plain) = 0;
protected:
char _encryptionKey[100];
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?