#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
std::cout << "<--------------------------------------------------"
"---->\n\n";
std::cout << "CAESAR CIPHER EXAMPLE\n\n";
std::string text0 = "Plaintext";
int shift_key_0 = 5;
std::string hashtext_0 = cc.
caesar(text0, shift_key_0);
std::cout << "Hashtext0 = " << hashtext_0 << std::endl;
std::string text1 = "ATTACKATONCE";
int shift_key_1 = 4;
std::string hashtext_1 = cc.
caesar(text1, shift_key_1);
std::cout << "Hashtext1 = " << hashtext_1 << std::endl;
std::cout << "\nMONOALPHABETIC SUBSTITUION KEYWORD CIPHER EXAMPLE\n\n";
std::string shift_key_2 = "Computer";
std::string text2 = "Password";
std::string hashtext_2 = cc.
keyword(text2, encoded_text);
std::cout << "Hashtext2 = " << hashtext_2 << std::endl;
std::string text_4 = "P455W0RD";
std::string key_shift_4 = "IN1T_d";
std::string hashtext_4 = cc.
keyword(text_4, encoded_text_4);
std::cout << "Hashtext4 = " << hashtext_4 << std::endl;
return 0;
}
std::string keyword_encode(std::string key)
std::string keyword(std::string plaintext, std::string encoded_text)
std::string caesar(std::string plaintext, int64_t key)
User API for OpenGPMP NUMBER THEORY MODULE.