# Exporting full kyber

As mentioned in ["Sharing Kyber"](https://usekyber.is-a.dev/documentation/sharing-kyber), sometimes, you want to export the **FULL** kyber to save it and reuse it later.

### Exporting

To export the`Kyber` object, you just transform it to a JSON string:

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

```nim
import nim_kyber/big

var k: Kyber = createRandomKyber(); # Create the kyber object
var str: string = k.exportFullKyber(); # Get the JSON string
```

{% endtab %}
{% endtabs %}

Now share the `str` variable, which can be imported as done in the next example.

### Importing

To import the `Kyber` object from a string, use `importFullKyber`.

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

```nim
import nim_kyber/big

var str = "..." # The exported JSON string
var k: Kyber = importFullKyber(str);
```

{% endtab %}
{% endtabs %}

Now you can use `k.recieveMessage`, `k.public`, all functionalities of the `Kyber` object mentioned in this documentation.
