#ifndef MDM_MONOALPHABETIC_SUBSTITUTION
#define MDM_MONOALPHABETIC_SUBSTITUTION
#include <string>
#define MDM_ALPHABET_SIZE 26
#define MDM_UNKNOWN -1
class MonoAlphabeticSubstitution {
private:
char decode[MDM_ALPHABET_SIZE];
public: MonoAlphabeticSubstitution(); bool frequencyAnalysis(string encrypted); char defineSubstitution(char encrypt, char plain);
bool defineAllSubstitutions(string plaintext);
bool defineAllSubstitutions(string encrypted, string plaintext);
bool defineAllSubstitutions(int m, int b); char undefineSubstitution(char encrypt);
void undefineAllSubstitutions(); bool displaySubstitutions(); string decodeString(string encrypted);
};
#endif