2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.
#include <SPUtil.h>
Static Public Member Functions | |
| string | rippleadd1 (string inputstring) |
| string | char62circadd (string str1, string str2) |
| string | char62circsub (string str1, string str2) |
| int | char62code2num (char c) |
| int | num2char62code (int x) |
| int | SPsmoothValue (int sampleSize, int seed, vector< int > keyArray) |
| string | INTdelimiter () |
| string | MESSdelimiter () |
| string | INTMESSdelimiter () |
| string | stringArrTostring (vector< string > sa, string delim) |
| vector< string > | stringArrAddEl (vector< string > sa, string str) |
| vector< int > | IntArrAddEl (vector< int > iarr, int i) |
| vector< int > | arrSplice (vector< int > iarr, int pos) |
| vector< string > | stringArrAddArr (vector< string > sa1, vector< string > sa2) |
| vector< string > | ByteArrTostringArr (vector< SPbyte > bt) |
| vector< SPbyte > | stringArrToByteArr (vector< string > strarr) |
| vector< string > | stringTostringArr (string str, string del) |
| int | toInt (const char *str) |
| string | tostring (int i) |
| vector< string > | stringArrRemoveEl (vector< string > sa, string str) |
| string | BinaryTostring (vector< SPbyte > digest) |
| vector< SPbyte > | stringToBinary (string str) |
| int | stringToInt (const char *str) |
| int | HexstringToInt (const string hexStrIN) |
| string | IntTostring (int i) |
| string | IntTostring (int i, int hexdec) |
| vector< SPbyte > | ByteArrAddArr (vector< SPbyte > sa1, vector< SPbyte > sa2) |
| vector< SPbyte > | ByteArrAddEl (vector< SPbyte > sa, SPbyte str) |
| vector< SPbyte > | IntToByte (int i) |
| vector< SPbyte > | subByteArr (vector< SPbyte > inbArr, int start, int end) |
| bool | arrComp (vector< SPbyte > b1, vector< SPbyte > b2) |
| vector< string > | stringArrGETsubArr (vector< string > strArr, int indexStart, int indexEnd) |
| vector< SPbyte > | ByteArrGETsubArr (vector< SPbyte > strArr, int indexStart, int indexEnd) |
| string | LongTostring (long i) |
| long | stringToLong (string str) |
| bool | comparestringArrays (vector< string > str1, vector< string > str2) |
| bool | registerTransaction (string transName, SPAbstractTransactionInterface *transInstance) |
| vector< string > | viewRegisteredTransaction () |
| SPAbstractTransactionInterface * | getRegisteredTransaction (string key) |
| string | SPgenerateKey (int keySize) |
| string | SPtransform (string input, string gameid) |
| vector< SPbyte > | getHashText (string plainText, string algorithm) |
| bool | isElementIncluded (string elem, vector< string > array) |
| bool | stringArrContainsEl (vector< string > arr, string elem) |
| int | XreferenceTwoArrays (vector< string > arr1, vector< string > arr2) |
| bool | IsArrayIntersectionTrue (vector< string > arr1, vector< string > arr2) |
| vector< string > | ArrayIntersection (vector< string > arr1, vector< string > arr2) |
| long | getTime () |
| int | getNextRandom () |
Static Public Attributes | |
| const string | INTERNAL_COMMS = "internal" |
| const int | SP_ID_SIZE = 12 |
| const int | SP_KEY_SIZE = 25 |
| const int | SP_UPDATE_INTERVAL = 380 |
| string | SP_TESTSEGMENT = "THISISANONCOMMERCIALONLYSECUREPLAYLICENSEAAAAAAAAAA" |
| const string | intDel = ":" |
| const string | messDel = ";" |
| const string | interMessDell = "~" |
|
||||||||||||
|
Cross References two string array and returns the common strings or mathces occured between two arrays.
|
|
||||||||||||
|
This method compares two byte arrays.
|
|
||||||||||||
|
Returns a new array that removes a single element from the input Integer array at a given position
|
|
|
This method convets a byte array to a string where each byte is split into two characters providing the hex representation of the byte.
|
|
||||||||||||
|
This method add two byte arrays together.
|
|
||||||||||||
|
This function appends a byte element to the end of the byte array.
|
|
||||||||||||||||
|
This method gets the sub array of a Stirng array.
|
|
|
Converts byte array into string array.
|
|
||||||||||||
|
This function does a circular, character by character addition mod 62 assuming the strings are "right justified". This returns the result as a new string.
|
|
||||||||||||
|
This function does a circular, character by character subtraction mod 62 assuming the strings are "right justified" this returns the result as a new string.
|
|
|
This function takes the character code provided and converts it to a number between 0 and 61
|
|
||||||||||||
|
Compares two string arrays if they contain identical items. The order does not matter, just as long as they contain number and same strings.
|
|
||||||||||||
|
This method gets the hashed string
|
|
|
|
|
|
This method gets a registered Transaction object from the register list and returns it to the user.
|
|
|
|
|
|
|
|
||||||||||||
|
This function appends a integer element to the end of the integer array.
|
|
|
Returns a string delimiter1 Delimiter1 = ":" Used for serializing internal message arrays
|
|
|
Returns a string delimiter3 Delimiter3 = "~" Used for serialising multiple messages
|
|
|
This method converts an integer into a byte array.
|
|
||||||||||||
|
Integer to string.
|
|
|
Integer to string.
|
|
||||||||||||
|
Cross References two string array and returns number of same strings or mathces occured between two arrays.
|
|
||||||||||||
|
This method checks to see if an element is included in a string array.
|
|
|
Long to string.
|
|
|
Returns a string delmiter2 Delimiter2 = ";" Used for serializing the message
|
|
|
this function takes a numerical value between 0 and 61 and converts it to a character code from 0..9A..Za..z
|
|
||||||||||||
|
This method registers Transaction objects with so that they can be used in this library.
|
|
|
This function adds 1 to the low order character of a string. It returns the result as a returned string value the input string is from the range - 0..9A..Za..z.
|
|
|
This function generates a "real" random key that is easily stored in a printable string. THIS FUNCTION SHOULD NOT BE USED FOR PRODUCTION GAMES. PLEASE USE A REAL RANDOM TOOL. THIS FUNCTION IS PROVIDED AS A SAMPLE ONLY
|
|
||||||||||||||||
|
This is a somewhat smooth, keyed, pseudorandom number generator. It generates a result between 0 and SampleSize -1. It uses the seed to generate a range of possible outcomes and it is driven by an array keyArray. THIS FUNCTION SHOULD NOT BE USED FOR PRODUCTION GAMES. CAREFUL SELECTION OF PSEUDO-RANDOM NUMBER GENERATORS IS CRITICAL.
|
|
||||||||||||
|
This function performs an irreversible transform on an input string to generate an output string. The sample implementation uses MD5. This method can be overridden and should be reviewed for security purposes prior to use in a production implementation.
|
|
||||||||||||
|
This method add two string arrays together.
|
|
||||||||||||
|
This function appends a string element to the end of the string array.
|
|
||||||||||||
|
Checks to see if the array contains the specified element.
|
|
||||||||||||||||
|
This method gets the sub array of a Stirng array.
|
|
||||||||||||
|
This function removes a string element from a string array.
|
|
|
This method converts a string array to a byte array.
|
|
||||||||||||
|
Parces the string array into a string with delimiters separating each array indexes
|
|
|
string to binary
|
|
|
string to integer.
|
|
|
string to Long.
|
|
||||||||||||
|
This method converts a string to a string array using the specified delimiter.
|
|
||||||||||||||||
|
This method retrieves the specified sub array of a byte array passed in.
|
|
|
Converts a string representaion of an integer to Integer class.
|
|
|
Converts an integer to string.
|
|
|
This method allows users to see what transactions have been registered.
|
|
||||||||||||
|
Cross References two string array and returns number of same strings or mathces occured between two arrays.
|
|
|
Delimiter1 = : Used for serializing internal message arrays |
|
|
Delimeter3 = ~ Used for serializing multiple messages |
|
|
Comms internal |
|
|
Delimiter2 = ; Used for serializing the message |
|
|
This value is used to set the default size of generated IDs - default is 12 |
|
|
This value is used to set game key size. Default is 25. |
|
|
This Constant is used to generate a Game Segment ID for sample code. |
|
|
This parameter is used to force an update check - only necessary for polling communications. Default is 3800. |