LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.checkpointserdeencrypted
    Module●Since v2.0

    encrypted

    Classes

    class
    CipherProtocol

    Protocol for encryption and decryption of data.

    • encrypt: Encrypt plaintext.
    • decrypt: Decrypt ciphertext.
    class
    SerializerProtocol

    Protocol for serialization and deserialization of objects.

    • dumps_typed: Serialize an object to a tuple (type, bytes).
    • loads_typed: Deserialize an object from a tuple (type, bytes).

    Valid implementations include the pickle, json and orjson modules.

    class
    JsonPlusSerializer

    Serializer that uses ormsgpack, with optional fallbacks.

    Warning

    Security note: This serializer is intended for use within the BaseCheckpointSaver class and called within the Pregel loop. It should not be used on untrusted python objects. If an attacker can write directly to your checkpoint database, they may be able to trigger code execution when data is deserialized.

    Set the environment variable LANGGRAPH_STRICT_MSGPACK=true to restrict deserialization to a built-in allowlist of safe types. You can also pass an explicit allowed_msgpack_modules to the constructor.

    class
    EncryptedSerializer

    Serializer that encrypts and decrypts data using an encryption protocol.

    View source on GitHub