mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
Updated member availability
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//Ciphers/SourceFiles/Vigenere.hpp
|
//Ciphers/SourceFiles/Vigenere.hpp
|
||||||
//Matthew Ellison
|
//Matthew Ellison
|
||||||
// Created: 4-29-18
|
// Created: 4-29-18
|
||||||
//Modified; 4-29-18
|
//Modified: 5-5-18
|
||||||
//This file contains the declaration of the Vigenere class
|
//This file contains the declaration of the Vigenere class
|
||||||
|
|
||||||
#ifndef VIGENERE_HPP
|
#ifndef VIGENERE_HPP
|
||||||
@@ -11,26 +11,26 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
///TODO: Might be able to make encoding and decoding faster for longer messages by actually using a grid of alphabets (Caesar Ciphers)
|
|
||||||
class Vigenere{
|
class Vigenere{
|
||||||
protected:
|
protected:
|
||||||
std::string inputString; //This is the string that you want to encode or decode
|
std::string inputString; //This is the string that you want to encode or decode
|
||||||
std::string outputString; //This is the string that is output from encoding or decoding
|
std::string outputString; //This is the string that is output from encoding or decoding
|
||||||
std::string keyword; //This is the keyword that is the resposible for determining the offsets that you change each character by
|
std::string keyword; //This is the keyword that is the resposible for determining the offsets that you change each character by
|
||||||
std::vector<unsigned int> offset; //This holds the offsets computed from each character in the keyword
|
std::vector<unsigned int> offset; //This holds the offsets computed from each character in the keyword
|
||||||
void setOffset();
|
void setOffset(); //Uses keyword to calculate the offset for the Caesar cipher for each character
|
||||||
|
void setInputString(std::string input);
|
||||||
|
void setKeyword(std::string key);
|
||||||
|
std::string encode();
|
||||||
|
std::string decode();
|
||||||
public:
|
public:
|
||||||
Vigenere();
|
Vigenere();
|
||||||
~Vigenere();
|
~Vigenere();
|
||||||
void setInputString(std::string input);
|
|
||||||
std::string getInputString() const;
|
std::string getInputString() const;
|
||||||
std::string getOutputString() const;
|
std::string getOutputString() const;
|
||||||
void setKeyword(std::string key);
|
|
||||||
std::string getKeyword() const;
|
std::string getKeyword() const;
|
||||||
std::vector<unsigned int> getOffsets() const;
|
std::vector<unsigned int> getOffsets() const;
|
||||||
std::string encode();
|
|
||||||
std::string encode(std::string key, std::string input);
|
std::string encode(std::string key, std::string input);
|
||||||
std::string decode();
|
|
||||||
std::string decode(std::string key, std::string input);
|
std::string decode(std::string key, std::string input);
|
||||||
void reset();
|
void reset();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user