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/GenerateKeys.h
T
2017-04-25 13:05:01 -05:00

53 lines
1.0 KiB
C++

#ifndef GENERATEKEYS_H
#define GENERATEKEYS_H
#include<string>
#include<vector>
#include<map>
class GenerateKeys
{
public:
typedef unsigned short unsignedShort;
GenerateKeys();
void populateDecryptedValues();
void populateEncryptedValues();
void keyMove();
void keyDump();
friend class Encryption;
friend class Decryption;
friend class KeyManagementWindow;
private:
void populateSymbols();
void populateNumbers();
void populateLetters();
void addRange(std::vector<int>&, int, const int);
void generateKey(std::string&, const int&);
void checkRepetition();
void print(const std::vector<int>&);
char getChar(std::vector<int>&);
std::vector<std::string> keys{};
std::vector<int> symbols{};
std::vector<int> numbers{};
std::vector<int> letters{};
std::vector<int> allCharacters{};
std::map<char, std::string> encryptedCharacters{};
std::map<std::string, char> decryptedCharacters{};
//KeySize show equal the value in key
const int keySize{5};
const int totalCharacters{63};
char key[5]{};
};
#endif