This repository has been archived on 2026-07-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PasswordEncryption/Encryption.h
amazing-username 353a1dfef1 Solution to issue #6
2017-08-12 17:02:43 -05:00

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