Created class for Atbash cipher

This commit is contained in:
2018-04-30 12:19:01 -04:00
parent 96866aebd2
commit 59759f69bb
2 changed files with 105 additions and 0 deletions

31
Headers/Atbash.hpp Normal file
View File

@@ -0,0 +1,31 @@
//Ciphers/Headers/Atbash.hpp
//Matthew Ellison
// Created: 4-30-18
//Modified: 4-30-18
//This file contains the declaration of the Atbash class
//This class is used to encode and decode an Atbash cipher
#ifndef ATBASH_HPP
#define ATBASH_HPP
#include <string>
class Atbash{
private:
std::string inputString;
std::string outputString;
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();
};
#endif //ATBASH_HPP