OTPNitro
 All Classes Files Functions Variables Macros
Public Member Functions | List of all members
Crypto Class Reference

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...
 

Detailed Description

Crypt and decrypt class.

Member Function Documentation

string Crypto::decrypt ( string  crypted,
string  out 
)

Decrypt a text (crypted) string.

Parameters
cryptedOriginal (crypted) string
outThe ciphered text to sum(26)
Returns
The decrypted string

This function also replaces all "JQ" ocurrences from the decrypted text to spaces

string Crypto::encrypt ( string  in,
string  out 
)

Crypt a text string.

Parameters
inOriginal (not crypted) string
outThe ciphered text to sum(26)
Returns
The crypted string

This function also remove the newline chars and replace all spaces to the "JQ" from the original text before to be crypted


The documentation for this class was generated from the following files: