# CipherProtocol

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

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

Protocol for encryption and decryption of data.

- `encrypt`: Encrypt plaintext.
- `decrypt`: Decrypt ciphertext.

## Signature

```python
CipherProtocol()
```

## Extends

- `Protocol`

## Methods

- [`encrypt()`](https://reference.langchain.com/python/langgraph.checkpoint/serde/base/CipherProtocol/encrypt)
- [`decrypt()`](https://reference.langchain.com/python/langgraph.checkpoint/serde/base/CipherProtocol/decrypt)

---

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