# EncryptedSerializer

> **Class** in `langgraph.checkpoint`

📖 [View in docs](https://reference.langchain.com/python/langgraph.checkpoint/serde/encrypted/EncryptedSerializer)

Serializer that encrypts and decrypts data using an encryption protocol.

## Signature

```python
EncryptedSerializer(
    self,
    cipher: CipherProtocol,
    serde: SerializerProtocol = JsonPlusSerializer(),
)
```

## Extends

- `SerializerProtocol`

## Constructors

```python
__init__(
    self,
    cipher: CipherProtocol,
    serde: SerializerProtocol = JsonPlusSerializer(),
) -> None
```

| Name | Type |
|------|------|
| `cipher` | `CipherProtocol` |
| `serde` | `SerializerProtocol` |


## Properties

- `cipher`
- `serde`

## Methods

- [`dumps_typed()`](https://reference.langchain.com/python/langgraph.checkpoint/serde/encrypted/EncryptedSerializer/dumps_typed)
- [`loads_typed()`](https://reference.langchain.com/python/langgraph.checkpoint/serde/encrypted/EncryptedSerializer/loads_typed)
- [`from_pycryptodome_aes()`](https://reference.langchain.com/python/langgraph.checkpoint/serde/encrypted/EncryptedSerializer/from_pycryptodome_aes)

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/aa322c13cd5f16a3f6254a931a4104e412cd687c/libs/checkpoint/langgraph/checkpoint/serde/encrypted.py#L8)