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/Decryption.h
T
amazing-username 6c1f92ea30 Refractoring
2017-06-23 18:01:42 -05:00

30 lines
616 B
C++

#ifndef DECRYPTION_H
#define DECRYPTION_H
#include<fstream>
#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 cstringToString(char[], const int&);
std::string decryptedMessage;
std::map<std::string, char> decryptedCharacters;
};
#endif