#include <string>
#include <cassert>
#include <iostream>
#include <QDebug>
#include "cypher.h"
|
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.
|
|
string cypher |
( |
string |
message, |
|
|
string |
key |
|
) |
| |
Function that recives the plaintext message and the keyword provided by the user and encrypts the message.
- Parameters
-
message | Message to be encrypted provided by the user |
key | keyword 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
-
message | Message to be encrypted provided by the user |
key | keyword that the user provides, used to encrypt plain text |