Files
CipherStream/Headers/Autokey.hpp
2018-05-05 15:23:02 -04:00

28 lines
844 B
C++

//Ciphers/Headers/Autokey.hpp
//Matthew Ellison
// Created: 5-2-18
//Modified: 5-5-18
//This file contains the declaration of the Autokey class
//This class will encode a message using the Autokey cipher
#ifndef AUTOKEY_HPP
#define AUTOKEY_HPP
#include "Vigenere.hpp"
class Autokey : public Vigenere{
protected:
void encodeSet(std::string& key, std::string input); //Special rules for setting the strings for encoding
void decodeSet(std::string& key, std::string input); //Setting the strings for decoding
std::string decode(); //Decodes the inputString
public:
Autokey();
~Autokey();
virtual std::string encode(std::string key, std::string input); //Encodes inputString using the Autokey cipher
virtual std::string decode(std::string key, std::string input); //Decodes inputString using the Autokey cipher
};
#endif //AUTOKEY_HPP