mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
Added version information for all classes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//Ciphers/Headers/Playfair.hpp
|
||||
//Matthew Ellison
|
||||
// Created: 4-25-18
|
||||
//Modified: 5-5-18
|
||||
//Modified: 5-16-18
|
||||
//This file contains the declaration of the Playfair class
|
||||
//It is designed to encrypt and decrypt strings using the Playfair cipher
|
||||
|
||||
@@ -20,6 +20,7 @@ private:
|
||||
std::string inputString; //The message that needs to be encoded/decoded
|
||||
std::string outputString; //The encoded/decoded message
|
||||
std::string keyword; //The keyword used to create the grid
|
||||
static const std::string version; //The current library's version number
|
||||
char grid[5][5]; //The grid used to encode/decode the message
|
||||
void createGrid(); //Create the grid from the keyword
|
||||
bool checkGrid(const char letter) const; //Returns true if the letter is found in the grid
|
||||
@@ -45,6 +46,7 @@ public:
|
||||
static void setReplaced(const char replaced); //Sets the character that needs replaced in messages and the grid
|
||||
static void setReplacer(const char replacer); //Sets the character that replaces the character that needs replaced
|
||||
static void setDoubled(const char doubled); //Sets the character that is added betwee 2 adjacent characters that are the same
|
||||
static std::string getVersion();
|
||||
};
|
||||
|
||||
#endif //PLAYFAIR_HPP
|
||||
|
||||
Reference in New Issue
Block a user