Skip to content

checkpoint==2.0.21

Choose a tag to compare

@github-actions github-actions released this 17 Mar 22:27
9ed0fa1

langgraph-checkpoint 2.0.21

Summary of Changes

  • Added encryption support for serialized data with a new EncryptedSerializer class and CipherProtocol interface, providing secure storage for sensitive data in checkpoints #3852

Detailed Changes

langgraph.checkpoint.serde.base.CipherProtocol

  • Added a new protocol interface for encryption and decryption of data with methods for encrypting plaintext and decrypting ciphertext #3852

langgraph.checkpoint.serde.encrypted.EncryptedSerializer

  • Added a new serializer that encrypts and decrypts data using an encryption protocol #3852
  • Implements the SerializerProtocol with encryption capabilities, wrapping an underlying serializer (defaults to JsonPlusSerializer)
  • Provides a factory method from_pycryptodome_aes to create an AES-encrypted serializer using the pycryptodome library
  • Supports configuration via environment variable LANGGRAPH_AES_KEY or direct key passing for flexibility
  • Compatible with existing serialized data, allowing a smooth transition to encrypted storage