> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# KeyPair

> atoti\_storage\_azure.KeyPair(\
>
>     *public\_key*: [str](https://docs.python.org/3/builtins/stdtypes.html#str),\
>
>     *private\_key*: RedactedStr,\
>
>     \*,\
>
>     *key\_id*: [str](https://docs.python.org/3/builtins/stdtypes.html#str),\
>
> )

Key pair to use for client side encryption.

> [!WARNING]
>
> Each encrypted blob must have the metadata attribute `unencrypted_content_length` with the unencrypted file size.
> If this is not set, an **Issue while downloading** error will occur.

```pycon theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
>>> from atoti_storage_azure import KeyPair
>>> client_side_encryption = KeyPair("public_key", "private_key", key_id="key_id")
```

### Properties

#### *public\_key\_pem*

> [str](https://docs.python.org/3/builtins/stdtypes.html#str)

The public key in PEM format.

### Attributes

#### *key\_id*

The ID of the key used to encrypt the blob.

#### *public\_key*

> [str](https://docs.python.org/3/builtins/stdtypes.html#str)

#### *private\_key*

> RedactedStr
