29 lines
573 B
C++
29 lines
573 B
C++
#ifndef DECRYPTION_H
|
|
#define DECRYPTION_H
|
|
|
|
#include<string>
|
|
#include<map>
|
|
#include"Cryption.h"
|
|
|
|
class Decryption : public Cryption
|
|
{
|
|
public:
|
|
Decryption() = default;
|
|
~Decryption() = default;
|
|
Decryption(const std::string&);
|
|
|
|
void setDecryptedMessage(const std::string&);
|
|
void setMessage(const std::string&) override;
|
|
void decryptMessage();
|
|
|
|
std::string getDecryptedMessage() const;
|
|
std::string getMessage() const override;
|
|
private:
|
|
void setupMap();
|
|
std::string decryptedMessage;
|
|
std::map<std::string, char> decryptedCharacters;
|
|
const int keyLength{5};
|
|
};
|
|
|
|
#endif
|