# How to Store Sensitive Data Like Username and Password For a Cypress Test

Let's say you want to test the login for an application.  Here's how you'd go about storing username and password in Testery.

1. Navigate to Environments Tab
2. Add a new environment (if you don't have one)
3. Add a variable for your sensitive data like password
4. Enter name of variable (i.e. password) as CYPRESS\_password and its value. For Cypress, you'll be able to access the value using Cypress.env('password') in your code (omitting the CYPRESS\_ prefix)
5. Click on "encrypt" checkbox (screenshot below)
6. Save

![](/files/-MRfmlGqARhLEcuODRuy)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.testery.io/how-to/how-to-store-sensitive-data-like-username-and-password-in-a-cypress-test.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
