summaryrefslogtreecommitdiffstats
path: root/src/crypt/cryptclasscaesar.h
blob: dd1bbd64fdb9e98d8cfaf89f59523346ceb5b942 (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
31
32
33
34
#ifndef CRYPTCLASSCAESAR_H
#define CRYPTCLASSCAESAR_H

#include "cryptclassbase.h"
#include <QMap>
#include <QByteArray>
#include <QDebug>
#include <QMessageBox>

/**
 * @brief The CryptClassCaesar class defines the caesar encryption
 */
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