.. _doc_pages_pck_godot_encryption: .. note:: Godot Official documentation on PCK encryption `PCK Encryption `_. Compiling Godot with Encryption Key =================================== Follow these steps to create a **Godot Matrix** and configure it with a new AES-256 encryption key. #. Visit the **Matrix Blueprints** page. #. Click **Create Godot Matrix**. #. Click the **cog icon** to configure the matrix. .. image:: ../img/modal.png :alt: Godot Modal #. Enable **Environment Variables** by clicking the corresponding button. .. image:: ../img/enable.png :alt: Enable vars #. Click the **Add +** button to add a new environment variable. .. image:: ../img/click_add.png :alt: Enable vars #. Set the variable name to: ``SCRIPT_AES256_ENCRYPTION_KEY`` .. image:: ../img/var_name.png :alt: Enable vars #. Set the variable value to a **256-bit AES key**. You can generate this key using the "Generate a 256-bit AES key" button: .. image:: ../img/var_value.png :alt: Variable Value Or use `openssl` to generate it manually: .. code-block:: bash openssl rand -hex 32 > godot.gdkey #. Copy the AES key value, since it will be used to export your game Click **Save**. .. warning:: **Make sure to click Save!** If you don't, the variables will not be added.