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

# Python 3: RSAPublicKey

> The XML RSA public key used to check license signatures.

Python 3 package `licensing 0.54`. [Reviewed source revision](https://github.com/Cryptolens/cryptolens-python/tree/8f38b5a37580f2aba1c9374f581cdc85e251950f).

```python theme={null}
from licensing.models import RSAPublicKey
```

## Properties

| Property | Meaning |
| - | - |
| `modulus` | The Base64-encoded RSA modulus. |
| `exponent` | The Base64-encoded RSA exponent. |

<a id="licensing.models.RSAPublicKey.from_string" />

## from\_string

Parse an RSA public key in XML format.

```python theme={null}
RSAPublicKey.from_string(rsaPubKeyString)
```

### Parameters

| Parameter | Default | Meaning |
| - | - | - |
| `rsaPubKeyString` | Required | Your complete RSA public key XML from [QuickStart's Credentials section](https://app.cryptolens.io/docs/api/v3/QuickStart). |

### Result

Returns an `RSAPublicKey` object.

Malformed XML or missing Modulus/Exponent elements can raise an exception.

### Checks

Reads the key's elements; it does not verify any license response.

[Python SDK Reference](/libraries/python-api)
