blob: 95fc4796cf6b1d119c7ca9be4fae1e088aee074b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef CRYPTCLASSCAESAR_H
#define CRYPTCLASSCAESAR_H
#include "cryptclassbase.h"
#include <QMap>
#include <QDebug>
#include <QMessageBox>
class CryptClassCaesar : public CryptClassBase
{
public:
CryptClassCaesar();
~CryptClassCaesar();
// CryptClassBase interface
public:
void encrypt();
void decrypt();
private:
void buildMap();
int mapOffset;
QMap<char, char> substitutionsMap;
const static int LOWERBOUND;
const static int UPPERBOUND;
};
#endif // CRYPTCLASSCAESAR_H
|