.. _doc_pages_pck_godot_encryption: Game's PCK file encrypted ================== Once you have compiled Godot export templates with encryption key, you can export your project's PCK file encrypted with the same key. When exporting a game from Godot, there are 2 ways to add the encryption key. #. Adding an environment variable with the key. #. Uploading your ``export_credentials.cg`` file. Adding Environment Variable --------------------------- A very simple way to Encrypt your game resources, is to add an environment variable. In order to do this #. Visit the **Matrix Blueprints** page. #. Click **Create Game Matrix**. #. Click the **cog icon** to configure the matrix. .. image:: ../img/game/modal.png :alt: Godot Modal #. Click Advance Settings .. image:: ../img/game/advance.png :alt: Advance #. 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: Add env var #. Set the variable name to: ``GODOT_SCRIPT_ENCRYPTION_KEY`` #. On the value field, use the same KEY as the one used when compiling Godot, .. image:: ../img/game/var_value.png :alt: Var name The form should look like this .. image:: ../img/game/full_form.png :alt: Full form Click Save .. warning:: **Make sure to click Save!** If you don't, the variables will not be added. To validate the variables were added, the Game Matrix should look like. .. image:: ../img/game/matrix_card.png :alt: Full form Uploading export_credentials.cfg -------------------------------- Whenever you configure a password or key on your godot project, all of these values are stored in a file ``.godot/export_credentials.cfg``. In order to upload this file you do: #. Visit the **Matrix Blueprints** page. #. Click **Create Game Matrix**. #. Click the **cog icon** to configure the matrix. .. image:: ../img/game/modal.png :alt: Godot Modal #. Click Advance Settings .. image:: ../img/game/advance.png :alt: Advance #. Under `export_credentials.cfg` drop down, click "+ New" button .. image:: ../img/game/new_file.png :alt: Advance #. Select your project export_credentials.cfg file. .. image:: ../img/game/upload_file.png :alt: Advance The form should look like this .. image:: ../img/game/full_form2.png :alt: Full form Click Save .. warning:: **Make sure to click Save!** If you don't, the variables will not be added.