mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
Updated the member functions and documentation
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//Ciphers/Headers/Atbash.hpp
|
||||
//Matthew Ellison
|
||||
// Created: 4-30-18
|
||||
//Modified: 4-30-18
|
||||
//Modified: 5-5-18
|
||||
//This file contains the declaration of the Atbash class
|
||||
//This class is used to encode and decode an Atbash cipher
|
||||
|
||||
@@ -13,17 +13,17 @@
|
||||
|
||||
class Atbash{
|
||||
private:
|
||||
std::string inputString;
|
||||
std::string outputString;
|
||||
std::string inputString; //Holds the string that needs encoded or decoded
|
||||
std::string outputString; //Holds the encoded/decoded string
|
||||
std::string decode(); //Decodes inputString and stores in outputString
|
||||
std::string encode(); //Encodes inputString and stores in outputString
|
||||
void setInputString(std::string input); //Removes all invalid characters and sets inputString
|
||||
public:
|
||||
Atbash();
|
||||
~Atbash();
|
||||
void setInputString(std::string input);
|
||||
std::string getInputString() const;
|
||||
std::string getOutputString() const;
|
||||
std::string encode();
|
||||
std::string encode(std::string input);
|
||||
std::string decode();
|
||||
std::string decode(std::string input);
|
||||
void reset();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user