www.pudn.com > CipherSystem.rar > PlayFairCipherSystem.h


#ifndef PLAY_FAIR_CIPHER_SYSTEM_H 
#define PLAY_FAIR_CIPHER_SYSTEM_H 
 
#include "MyCipherSystem.h" 
 
class PlayFairEncryptSystem : public EncryptSystem 
{ 
public: 
 
	PlayFairEncryptSystem(); 
	void GetData(const std::string& str); 
	bool GetKey(std::string& str); 
 
	void Encrypt(); 
	void Decrypt(); 
 
	char encryptMatrix[5][5]; 
private: 
 
	const char NO_USE_CHAR; 
	bool markArray[26]; 
	int charRow[26]; 
	int charCol[26]; 
}; 
 
#endif//PLAY_FAIR_CIPHER_SYSTEM_H