mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
Added the Caesar Cipher to the program
This commit is contained in:
35
Headers/Caesar.hpp
Normal file
35
Headers/Caesar.hpp
Normal 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
|
||||
Reference in New Issue
Block a user