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.checkpointserdebaseCipherProtocol
    Class●Since v2.0

    CipherProtocol

    Protocol for encryption and decryption of data.

    • encrypt: Encrypt plaintext.
    • decrypt: Decrypt ciphertext.
    Copy
    CipherProtocol()

    Bases

    Protocol

    Methods

    method
    encrypt

    Encrypt plaintext. Returns a tuple (cipher name, ciphertext).

    method
    decrypt

    Decrypt ciphertext. Returns the plaintext.

    View source on GitHub