My Project
Functions
cypher.cpp File Reference
#include <string>
#include <cassert>
#include <iostream>
#include <QDebug>
#include "cypher.h"

Functions

string cypher (string message, string key)
 Function that recives the plaintext message and the keyword provided by the user and encrypts the message. More...
 
string decypher (string m, string k)
 Function that deciphers Vigenere ciphertext, receives the ciphertext and the keyword and returns the plaintext. More...
 
void test_cypher ()
 Function to unit text the cypher function.
 

Function Documentation

string cypher ( string  message,
string  key 
)

Function that recives the plaintext message and the keyword provided by the user and encrypts the message.

Parameters
messageMessage to be encrypted provided by the user
keykeyword that the user provides, used to encrypt plain text
string decypher ( string  message,
string  key 
)

Function that deciphers Vigenere ciphertext, receives the ciphertext and the keyword and returns the plaintext.

Parameters
messageMessage to be encrypted provided by the user
keykeyword that the user provides, used to encrypt plain text