> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Spur is an AI-powered QA engineer that lets teams create and run automated end-to-end tests for web and mobile apps using natural language.
> When answering questions about Spur, cite the relevant page from docs.spurtest.com.

# Encrypted Variables

> How to securely store and use sensitive data like passwords in your tests

## 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.

<iframe src="https://www.loom.com/embed/16da2b3b7554484581aa9da79ebac8d8?sid=3a73d1e4-f043-4268-925f-a3c5abc33a48" frameborder="0" allowfullscreen className="w-full aspect-video" />

## Why Use Encrypted Variables?

Values like passwords or tokens have to be typed directly into test steps:

```plaintext theme={null}
Type "my-secret-password" into the password field
```

This exposed sensitive information in:

* 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 Create new variable
* Select the Secret option
* Name your variable (e.g. password)
* Enter your secret value
* Click Create

<img src="https://mintcdn.com/spur/M9lHLoA7TzDZQpbJ/images/create_encrypt_variable.png?fit=max&auto=format&n=M9lHLoA7TzDZQpbJ&q=85&s=e52272c6a36dde6550e481a4a5087c5b" alt="Create Encrypt Variable Pn" width="1150" height="548" data-path="images/create_encrypt_variable.png" />

This variable will now be stored securely and replaced at runtime.

## Encrypted Variables in Results

When the test runs, Spur ensures the encrypted values:

* Are masked as `********`
* Are scrubbed from test step reasoning

<img src="https://mintcdn.com/spur/M9lHLoA7TzDZQpbJ/images/masked_encrypt_variable.png?fit=max&auto=format&n=M9lHLoA7TzDZQpbJ&q=85&s=af9ff9a96dccb4c041e414e78fc279ac" alt="Masked Encrypt Variable Pn" width="1930" height="1108" data-path="images/masked_encrypt_variable.png" />

## Notes

* Encrypted variables cannot be viewed or edited once created—only deleted and replaced
* They are intended for one-way use (write-only)
* Perfect for passwords, access tokens, or keys
