Fixed typos

This commit is contained in:
2021-12-31 00:27:06 -05:00
parent ca22afcdce
commit 3c15c1e1d0
3 changed files with 7 additions and 6 deletions

View File

@@ -15,11 +15,11 @@
class Vigenere{
protected:
class emptyKeyword{}; //A class to help with error handling
std::string inputString; //This is the string that you want to encode or decode
std::string outputString; //This is the string that is output from encoding or decoding
std::string keyword; //This is the keyword that is the resposible for determining the offsets that you change each character by
std::string inputString; //This is the string that you want to encode or decode
std::string outputString; //This is the string that is output from encoding or decoding
std::string keyword; //This is the keyword that is the resposible for determining the offsets that you change each character by
static const std::string version; //The current library's version number
std::vector<unsigned int> offset; //This holds the offsets computed from each character in the keyword
std::vector<unsigned int> offset; //This holds the offsets computed from each character in the keyword
void setOffset(); //Uses keyword to calculate the offset for the Caesar cipher for each character
void setInputString(std::string input); //Sets inputString
void setKeyword(std::string key); //Sets keyword
@@ -30,7 +30,7 @@ public:
~Vigenere();
std::string getInputString() const; //Returns the current inputString
std::string getOutputString() const; //Returns the current outputString
std::string getKeyword() const; //Returns the current keyword
std::string getKeyword() const; //Returns the current keyword
std::vector<unsigned int> getOffsets() const; //Returns the current offsets (Used mostly in bug fixing)
std::string encode(std::string key, std::string input); //Encodes input using key and returns the result
std::string decode(std::string key, std::string input); //Decodes input using key and returns the result