www.pudn.com > CipherSystem.rar > LFSRCipherSystem.h
#ifndef LFSR_CIPHER_SYSTEM_H
#define LFSR_CIPHER_SYSTEM_H
#include "MyCipherSystem.h"
#include "GlobalFunctions.h"
class LFSRCipherSystem : public EncryptSystem
{
public:
void Encrypt();
void Decrypt();
void GetKey(const string& key, int feedback[], int feedbackLen);
void GetData(const string& input);
friend void BinaryToChar(const string& binaryStr, string& charStr);
friend void CharToBinary(const string& charStr, string& binaryStr);
private:
string shiftRegister;
string keyStream;
};
#endif//LFSR_CIPHER_SYSTEM_H