Added new Autokey class for Autokey cipher

This commit is contained in:
2018-05-03 11:37:59 -04:00
parent 17d59e00d1
commit 884dfb99ac
2 changed files with 125 additions and 0 deletions

27
Headers/Autokey.hpp Normal file
View File

@@ -0,0 +1,27 @@
//Ciphers/Headers/Autokey.hpp
//Matthew Ellison
// Created: 5-2-18
//Modified: 5-3-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:
virtual void encodeSetKeyword(std::string& key, std::string input);
virtual void decodeSetKeyword(std::string& key, std::string input);
std::string decode();
public:
Autokey();
~Autokey();
virtual std::string encode(std::string key, std::string input);
virtual std::string decode(std::string key, std::string input);
};
#endif //AUTOKEY_HPP