mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
28 lines
666 B
C++
28 lines
666 B
C++
//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
|