32 lines
776 B
C++
32 lines
776 B
C++
#ifndef ENCRYPTION_H
|
|
#define ENCRYPTION_H
|
|
|
|
#include<string>
|
|
#include<map>
|
|
#include"Cryption.h"
|
|
|
|
class Encryption : public Cryption
|
|
{
|
|
public:
|
|
Encryption() = default;
|
|
~Encryption() = default;
|
|
//Encryption(const std::string&);
|
|
explicit Encryption(const std::string&, const std::string&);
|
|
|
|
void setEncryptedMessage(const std::string&);
|
|
void setMessage(const std::string&) override;
|
|
void encryptMessage();
|
|
|
|
std::string getEncryptedMessage() const;
|
|
std::string getMessage() const override;
|
|
std::map<char, std::string> encryptedCharactersStructure();
|
|
private:
|
|
void setupMap(const std::string&);
|
|
void configurePasswordFileName();
|
|
bool repetitive();
|
|
std::string encryptedMessage;
|
|
std::string passwordFileName;
|
|
std::map<char, std::string> encryptedCharacters;
|
|
};
|
|
#endif
|