Added the Caesar Cipher to the program

This commit is contained in:
2018-04-25 18:58:05 -04:00
parent 422d38ed6f
commit 3503a42e77
5 changed files with 380 additions and 0 deletions

35
Headers/Caesar.hpp Normal file
View File

@@ -0,0 +1,35 @@
//Ciphers/Headers/Caesar.hpp
//Matthew Ellison
// Created: 4-25-18
//Modified: 4-25-18
//This file contains the declaration of the Caesar class
//This class implements the Caesar Cipher and is inteded to be turned into a library
#ifndef CAESAR_HPP
#define CAESAR_HPP
#include <string>
class Caesar{
private:
std::string input;
std::string output;
int shift;
public:
Caesar();
~Caesar();
void setInput(std::string inputString);
std::string getInput() const;
void setShift(int shiftAmount);
int getShift() const;
std::string getOutput() const;
std::string encode();
std::string encode(int shiftAmount, std::string inputString);
std::string decode();
std::string decode(int shiftAmount, std::string inputString);
void reset();
};
#endif //CAESAR_HPP