Protocol for encryption and decryption of data.
encrypt: Encrypt plaintext.decrypt: Decrypt ciphertext.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.
Serializer that uses ormsgpack, with optional fallbacks.
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.
Serializer that encrypts and decrypts data using an encryption protocol.