#ifndef VIGENERE_H_ #define VIGENERE_H_ #include using namespace std; class Cipher { private: char fVigenereSquare[26][26]; void SetupVigenereSquare(); char EncodeChar( char aKey, char aChar ); char DecodeChar( char aKey, char aChar ); public: Cipher(); string Encode( char aKey[], int& aKeyIndex, string aText ); string Decode( char aKey[], int& aKeyIndex, string aText ); void normalizeKey( char aKey[] ); }; #endif /*VIGENERE_H_*/