mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
Created class for Atbash cipher
This commit is contained in:
31
Headers/Atbash.hpp
Normal file
31
Headers/Atbash.hpp
Normal 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
|
||||
Reference in New Issue
Block a user