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.cpp
T

30 lines
503 B
C++

#include <ios>
#include "Encryption.h"
#include "GenerateKeys.h"
Encryption::Encryption()
{
}
Encryption::Encryption(const std::string& message)
{
this->message = message;
}
void Encryption::encryptMessage()
{
GenerateKeys* gk = new GenerateKeys;
ioEvent.open("encryptedFile.txt", std::ios::out);
for (unsigned short indexOfString = 0; indexOfString < message.size(); indexOfString++)
{
ioEvent << gk->encryptedCharacters[message.at(indexOfString)];
}
ioEvent.close();
delete gk;
}