Variables

Variables server side data in your program that can only be retrieved with a valid login and doesn't remain in the program on a computer.

Variables make your program very secure and I highly recommend that you make use of them

Initial Setup:

C#
SealCheck.HashChecks();
if(SealCheck.isValidDLL) {
/* Arguments in order: variable key, program token, username, password */
/* Username and password is required as the user must be logged in to retrieve variables */
TrinitySeal.Seal.GrabVariables("Variable key", "Program token", textBox1.Text, textBox2.Text)
}
VB.NET
SealCheck.HashChecks()

If SealCheck.isValidDLL Then
     TrinitySeal.Seal.GrabVariables("Variable key", "Program token", textBox1.Text, textBox2.Text)
End If

How to call a variable:

All variables called from the Var method are returned as strings and must be converted back to their original data type by you (unless the variable is a string) e.g. Convert.ToInt32(TrinitySeal.Seal.Var("a number"));

  1. Get a variable from your program. This can be any value e.g. boolean, int, double, string, char

  2. Go to the variables page of the website and create a new variable with a name of your choice and the value of the variable from your program

  3. Create the variable and go back to your program to replace the piece of data with the following code: TrinitySeal.Seal.Var("your variable name"); /* This returns the variable value */

If you are using the InitializeForm method, variables will automatically be grabbed when the user logs in, you do not need to call the GrabVariables method!

Last updated