> For the complete documentation index, see [llms.txt](https://trinityseal.gitbook.io/trinityseal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trinityseal.gitbook.io/trinityseal/security/variables.md).

# Variables

{% hint style="info" %}
Variables make your program very secure and I highly recommend that you make use of them
{% endhint %}

**Initial Setup:**

{% code title="C#" %}

```csharp
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)
}
```

{% endcode %}

{% code title="VB.NET" %}

```
SealCheck.HashChecks()

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

{% endcode %}

**How to call a variable:**

{% hint style="info" %}
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"));
{% endhint %}

1. Get a variable from your program. This can be any value e.g. boolean, int, double, string, char&#x20;
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!**
