-
Notifications
You must be signed in to change notification settings - Fork 0
/
caesar-cipher.h
29 lines (21 loc) · 955 Bytes
/
caesar-cipher.h
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
#ifndef CAESAR_CIPHER_CAESAR_CIPHER_H
#define CAESAR_CIPHER_CAESAR_CIPHER_H
#include <iostream>
#include <limits>
using namespace std;
void encryption(const string&);
// Function to display encrypt interface.
// Postcondition: const string is the alphabet displayed in plain then in ciphered.
void decryption(const string&);
// Function to display decrypt interface.
// Postcondition: const string is the alphabet displayed in plain then in ciphered.
string cipherAlpha(int&, const string&);
// Function to generate cipher alphabet.
// Postcondition: const string is alphabet shifted left by int positions.
string cipherMessage(const string&, int&);
// Function to encrypt the message.
// Postcondition: const string is message shifted left by int positions.
string decrypt(const string&, int&);
// Function to decrypt the message.
// Postcondition: const string is ciphertext shifted back by int positions.
#endif //CAESAR_CIPHER_CAESAR_CIPHER_H