diff --git a/Headers/Playfair.hpp b/Headers/Playfair.hpp index 07fc81e..691537c 100644 --- a/Headers/Playfair.hpp +++ b/Headers/Playfair.hpp @@ -1,7 +1,7 @@ //Ciphers/Headers/Playfair.hpp //Matthew Ellison // Created: 4-25-18 -//Modified: 4-25-18 +//Modified: 5-5-18 //This file contains the declaration of the Playfair class //It is designed to encrypt and decrypt strings using the Playfair cipher @@ -24,20 +24,20 @@ private: void createGrid(); bool checkGrid(const char letter) const; void searchGrid(char letter, int& row, int& col); + void setInputString(std::string input); + void setKeyword(std::string key); + std::string encode(); + std::string decode(); public: Playfair(); ~Playfair(); - void reset(); - std::string encode(); std::string encode(std::string keyword, std::string input); - std::string decode(); std::string decode(std::string keyword, std::string input); - void setKeyword(std::string key); std::string getKeyword() const; - void setInputString(std::string input); std::string getInputString() const; std::string getOutputString() const; std::string getGrid() const; + void reset(); //Change static variables static char getReplaced(); static void setReplaced(const char replaced);