Overview
Spur supports Encrypted Variables, allowing you to securely handle sensitive information like passwords or API tokens in your test flows—without exposing them in plain text in test steps or results.Why use encrypted variables?
Without encrypted variables, values like passwords or tokens are typed in plain text:- The test definition
- The test results page
- Shared test results
How encrypted variables work
Encrypted variables allow you to define secret values that:- Are stored securely
- Are not shown in results or shared test links
- Appear as
********on the test result page - Cannot be retrieved after being saved
Creating an encrypted variable
You can create an encrypted variable just like any other variable:- Open the variable menu by using
{ - Click Variable at the bottom of the menu
- Name your variable (e.g. password)
- Set Variable Type to Encrypted Variable
- Enter your secret value for each environment
- Click Create Property

Encrypted variables in results
When the test runs, Spur ensures the encrypted values:- Are masked as
******** - Are scrubbed from test step reasoning

Notes
- You can’t view an encrypted variable’s value after you create it. To change it, enter a new value on the Environments page
- They are intended for one-way use (write-only)
- Use encrypted variables for passwords, access tokens, or keys.
- Enter a value in each environment where you run tests that use the variable. If the variable has no value for a run, or its value is empty, Spur fails the test before the agent starts. See When an encrypted variable has no value.
Plain variables
If a value isn’t sensitive, set Variable Type to Variable instead. Plain variables are also saved to your environments, but their values stay visible.- The chip shows the variable’s name and value with an open lock icon.
- In the step editor, the value comes from the environment you’re previewing.
- In test results, the value is the one used in that run.
- You can view and edit the value on the Environments page.
