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 cec1e0bbb6 Code cleanup
2018-02-26 22:01:00 -06:00

34 lines
671 B
C++

#ifndef DECRYPTION_H
#define DECRYPTION_H
#include<map>
#include"Cryption.h"
#include"Encryption.h"
using std::map;
class Decryption : public Cryption
{
public:
Decryption() = default;
~Decryption() = default;
Decryption(const string&);
explicit Decryption(const Password<>&, const Key<>&);
void setDecryptedMessage(const string&);
void setMessage(const string&) override;
void retrieveMetaData();
void decryptMessage();
string getDecryptedMessage() const;
string getMessage() const override;
private:
void setupMap(const Key<>&);
string decryptedMessage;
string passwordPath;
map<string, char> decryptedCharacters;
const int keyLength{5};
};
#endif