Tanks Multiplayer  1.5
Static Public Member Functions | Public Attributes | List of all members
Encryptor

Encrypts strings passed in by using a set obfuscation key as well as the unique identifier of the running device. Used for storing in-app purchases. More...

Inheritance diagram for Encryptor:

Static Public Member Functions

static Encryptor GetInstance ()
 Returns a reference to this script instance. More...
 
static string Encrypt (string toEncrypt)
 Encrypt string based on secret key + device identifier. More...
 
static string Decrypt (string toDecrypt)
 

Public Attributes

bool encrypt = false
 Whether encryption should be enabled. More...
 
string secret = "abcd1234"
 56+8 bit key for encrypting strings: 8 characters, do not use code characters (=.,? etc) and play-test that your key actually works! On Windows Phone this key must be exactly 16 characters (128 bit) long. SAVE THIS KEY SOMEWHERE ON YOUR END, SO IT DOES NOT GET LOST ON UPDATES. More...
 

Detailed Description

Encrypts strings passed in by using a set obfuscation key as well as the unique identifier of the running device. Used for storing in-app purchases.

Member Function Documentation

static string Decrypt ( string  toDecrypt)
static

Decrypt string based on secret key + device identifier.

static string Encrypt ( string  toEncrypt)
static

Encrypt string based on secret key + device identifier.

static Encryptor GetInstance ( )
static

Returns a reference to this script instance.

Member Data Documentation

bool encrypt = false

Whether encryption should be enabled.

string secret = "abcd1234"

56+8 bit key for encrypting strings: 8 characters, do not use code characters (=.,? etc) and play-test that your key actually works! On Windows Phone this key must be exactly 16 characters (128 bit) long. SAVE THIS KEY SOMEWHERE ON YOUR END, SO IT DOES NOT GET LOST ON UPDATES.


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