> For the complete documentation index, see [llms.txt](https://wiki.4thtech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.4thtech.io/sdk-and-white-label/encryptor/getpublickey.md).

# getPublicKey

{% hint style="info" %}
Reference for SDK 0.5.x (maintenance mode). See [Status](/sdk-and-white-label/status.md).
{% endhint %}

Retrieves the public key from the Encryptor Extension.

### Usage

```ts
const publicKey = await encryptorExtension.getPublicKey();
```

### Returns

`Promise<string | undefined>`

A promise that resolves to the public key retrieved from the Encryptor Extension or undefined if the public key is not available.
