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