> For the complete documentation index, see [llms.txt](https://docs.fenixpyre.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/key-management/master-encryption-keys/setup-bring-your-own-master-encryption-key-byomek-with-google-hsm/create-a-master-encryption-key-and-store-in-google-hsm.md).

# Create a Master Encryption Key and Store in Google HSM

### Prerequisites

Follow the steps in this document to create a vault in Google Cloud Platform (GCP).

### Setting up Master Encryption Key with Google

> Watch video tutorial [here](#video-tutorial)

#### There are two ways to create a master key for FenixPyre encryption with GCP:

* Create a master key in the FenixPyre Dashboard
* Import the master key

**Creating and Managing a Master Key in FenixPyre Using Google Cloud**

1. **Log in to the FenixPyre Dashboard:**
   * Access the FenixPyre Dashboard with your credentials.
2. **Navigate to Key Management:**
   * Go to `Settings` → `Security` → `Key Management`.
3. **Create a Master Encryption Key:**
   * Click on `Master Encryption Keys`.
   * Click on `Add new master encryption key`.\ <br>

     <figure><img src="/files/4JjYQ06PM5i8r7Q2Dbrz" alt=""><figcaption></figcaption></figure>
4. **Select Google Cloud from the options:**<br>

   <figure><img src="/files/3SWcOVqHNB6sNGDMYlG3" alt=""><figcaption></figcaption></figure>
5. **Enter Key Details and Create the Key:**
   * Provide a name for your key.
   * Click `Create Key` to proceed.<br>

     <figure><img src="/files/rIt4neLCOYC2RM6WwqBE" alt=""><figcaption></figcaption></figure>
6. **Success Confirmation:**
   * A confirmation message will appear indicating successful key creation.\
     ![](/files/qOBaBA2uDbDgKPGcCExr)
7. **Copy and Download the Master Key:**

   * Copy the master key and download it for safekeeping.
   * Enter the key on the next page for verification.

   **Important:** FenixPyre does not store the decrypted version of the master key. Please ensure you securely store the key, as it is essential for decrypting your data in the future.
8. **Key Verification:**
   * Enter the key in the final step for verification to complete the master key creation process.\ <br>

     <figure><img src="/files/jwLUOtKfX9wNqPqVE7wt" alt=""><figcaption></figcaption></figure>

***

## Video Tutorial

{% embed url="<https://www.loom.com/embed/ef6ba67407f947f2aa38294d23801189?sid=75c99dad-1bd0-4aec-8c59-2c6345d41847>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/key-management/master-encryption-keys/setup-bring-your-own-master-encryption-key-byomek-with-google-hsm/create-a-master-encryption-key-and-store-in-google-hsm.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
