2024-06-13 15:02:39 +00:00
|
|
|
#ifndef CAESAR_H
|
|
|
|
#define CAESAR_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class Caesar {
|
|
|
|
public:
|
|
|
|
Caesar(int rotation);
|
|
|
|
void setRotation(int rotation);
|
|
|
|
int getRotation();
|
|
|
|
char encryptChar(char toEncrypt);
|
|
|
|
std::string encryptString(std::string toEncrypt);
|
|
|
|
private:
|
|
|
|
int rotation;
|
2024-06-13 22:20:44 +00:00
|
|
|
const int MIN = 32;
|
2024-06-13 15:02:39 +00:00
|
|
|
const int MAX = 126;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|