Combu  3.2.2
Unity API Documentation
Public Member Functions | Properties | List of all members
Combu.CombuEncryption Class Reference

Public Member Functions

void SetToken (string sessionToken)
 Sets the session token. More...
 
void LoadRSA (string sessionToken, string xml)
 Sets the session token and loads the RSA data from XML (Public Key). More...
 
void LoadRSA (string sessionToken, string modulus, string exponent)
 Sets the session token and loads the Modulus and Exponent of the RSA Public Key. More...
 
string EncryptRSA (string inputString)
 Encrypts a string with RSA. More...
 
string EncryptAES (string inputString)
 Encrypts a string with AES. More...
 
string DecryptAES (string inputString)
 Decrypts a string what was encrypted with the current AES Key/IV. More...
 
string EncryptMD5 (string inputString)
 Encrypts a string in MD5 hash. More...
 
string EncryptSHA1 (string inputString)
 Encrypts a string in SHA1 hash. More...
 
string DecryptResponse (string text)
 Decrypts the response from server. More...
 

Properties

string Token [get]
 
string Key [get]
 
string IV [get]
 

Member Function Documentation

◆ DecryptAES()

string Combu.CombuEncryption.DecryptAES ( string  inputString)

Decrypts a string what was encrypted with the current AES Key/IV.

Returns
The decrypted string.
Parameters
inputStringInput string.

◆ DecryptResponse()

string Combu.CombuEncryption.DecryptResponse ( string  text)

Decrypts the response from server.

Returns
The response decrypted.
Parameters
textResponse text.

◆ EncryptAES()

string Combu.CombuEncryption.EncryptAES ( string  inputString)

Encrypts a string with AES.

Returns
The AE.
Parameters
inputStringInput string.

◆ EncryptMD5()

string Combu.CombuEncryption.EncryptMD5 ( string  inputString)

Encrypts a string in MD5 hash.

Returns
The MD5 encrypted string.
Parameters
inputStringInput string.

◆ EncryptRSA()

string Combu.CombuEncryption.EncryptRSA ( string  inputString)

Encrypts a string with RSA.

Returns
The RS.
Parameters
inputStringText to encrypt.

◆ EncryptSHA1()

string Combu.CombuEncryption.EncryptSHA1 ( string  inputString)

Encrypts a string in SHA1 hash.

Returns
The SHA1 encrypted.
Parameters
inputStringInput string.

◆ LoadRSA() [1/2]

void Combu.CombuEncryption.LoadRSA ( string  sessionToken,
string  modulus,
string  exponent 
)

Sets the session token and loads the Modulus and Exponent of the RSA Public Key.

Parameters
sessionTokenSession token.
modulusModulus.
exponentExponent.

◆ LoadRSA() [2/2]

void Combu.CombuEncryption.LoadRSA ( string  sessionToken,
string  xml 
)

Sets the session token and loads the RSA data from XML (Public Key).

Parameters
sessionTokenSession token.
xmlRSA Xml.

◆ SetToken()

void Combu.CombuEncryption.SetToken ( string  sessionToken)

Sets the session token.

Parameters
sessionTokenSession token.