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

# Secrets

> Protect sensitive keys

Managing a data ecosystem involves putting extra effort to manage sensitive data. Nekt provides Secrets as a resource to help you with that.

## What are Secrets and why would you use them?

You can create secrets to encapsulate sensitive keys like API keys or credentials in your workspace. It means that wherever you need to use a key, you can use the secret name instead.

<video controls autoPlay src="https://public.nekt.ai/videos/secrets/secrets_pt_1.mp4" muted playsInline preload="auto" className="w-full" />

There are many scenarios where this can be helpful, but to name a few:

* key rotation process without the need of updating code
* avoid sharing keys through messages
* avoid exposing keys in screen records

## How to use them?

When creating your code, load a secret value from your organization’s secrets vault using the `.load_secret()` method. Read more about it [here](/notebooks/sdk#load-secret)

You can also create a token and include Secrets in it with other tables. Then when you share the token with someone creating a transformation, they will have access to everything they need.

<video controls autoPlay src="https://public.nekt.ai/videos/secrets/secrets_pt_2.mp4" muted playsInline preload="auto" className="w-full" />

> Let us know if you have any questions!
