Crypt and decrypt class. More...
#include <crypto.h>
Public Member Functions | |
string | decrypt (string, string) |
Decrypt a text (crypted) string. More... | |
string | encrypt (string, string) |
Crypt a text string. More... | |
Crypt and decrypt class.
string Crypto::decrypt | ( | string | crypted, |
string | out | ||
) |
Decrypt a text (crypted) string.
crypted | Original (crypted) string |
out | The ciphered text to sum(26) |
This function also replaces all "JQ" ocurrences from the decrypted text to spaces
string Crypto::encrypt | ( | string | in, |
string | out | ||
) |
Crypt a text string.
in | Original (not crypted) string |
out | The ciphered text to sum(26) |
This function also remove the newline chars and replace all spaces to the "JQ" from the original text before to be crypted