📄 hillcode.h
字号:
#ifndef __HILLCODE_H__
#define __HILLCODE_H__
#include "Matrix.h"
#include <STRING>
using std::string;
class CHillCode
{
public:
const long * GetDiscryptedKey() const;
void SetE(const unsigned char *pE, const int LEN);
void SetM(const unsigned char *pM, const int LEN);
const char * Discrypting();
void SetE(const unsigned char * pE);
void SetDiscryKey(const CMatrix &matrixDiscryKey);
const char * Encrypting();
CHillCode();
void SetM(const unsigned char *pM);
int SetEncryKey(const long * plMatrix, const int LEN);
~CHillCode();
CHillCode(const CHillCode &HillCode);
CHillCode & operator = (const CHillCode &HillCode);
protected:
private:
unsigned char * m_szM; //明文
unsigned char * m_szE; // 密文
int m_nLenM; // 明文长度
int m_nLenE; // 密文长度
CMatrix m_matrixEncryKey;
CMatrix m_matrixDiscryKey;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -