> For the complete documentation index, see [llms.txt](https://docs.hiveauth.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hiveauth.com/has-for-wallets-pksa/server-encryption-key-retrieval.md).

# Server Encryption Key retrieval

This step is implemented to secure the communication between the **PKSA** and the **HAS** and provide a way to later authenticate user accounts with certainty.

The **PKSA** asks the **HAS** for its public encryption key by sending the following message:

```js
{ cmd: "key_req" }
```

The **HAS** responds with the following message:

### key\_ack

```
{ 
    cmd: "key_ack", 
    key: string
}
```

{% tabs %}
{% tab title="Properties" %}

* **`key`**: The server public key to use to perform asymmetric encryption.
  {% endtab %}
  {% endtabs %}
