API Reference¶

Sigilo¶

This part of the documentation covers the classes and functions that sigilo module provides.

class sigilo.Sigilo¶

Teste

__init__(store: Store, cipher: Cipher)¶
get(key: str) bytes¶
set(key: str, plain_value: bytes)¶

Stores¶

class sigilo.stores.Store¶
get(key: str) bytes¶
set(key: str, value: bytes)¶
class sigilo.stores.memory.MemoryStore¶
__init__()¶
get(key: str) bytes¶
set(key: str, value: bytes)¶
class sigilo.stores.redis.RedisStore¶
__init__(redis_url: str)¶
get(key: str) bytes¶
set(key: str, value: bytes)¶
class sigilo.stores.memcache.MemcacheStore¶
__init__(memcache_host: str, memcache_port: int)¶
get(key: str) bytes¶
set(key: str, value: bytes)¶

Ciphers¶

class sigilo.ciphers.Cipher¶

Common interface for encryption and decryption algorithms in Sigilo.

encrypt(value: bytes) bytes¶
decrypt(value: bytes) bytes¶
class sigilo.ciphers.fernet.FernetCipher¶
__init__(key: bytes | List[bytes])¶
encrypt(value: bytes) bytes¶
decrypt(value: bytes) bytes¶
class sigilo.ciphers.plain.PlainCipher¶
encrypt(value: bytes) bytes¶
decrypt(value: bytes) bytes¶