cryptoolz package¶
Subpackages¶
- cryptoolz.app package
- cryptoolz.crypto package
- Submodules
- cryptoolz.crypto.circuits module
CircuitInsBaseCircuitLikeCircuitOutsBaseDecryptAESGCMDecryptPBDKF2_AESGCMDerivePBDKF2EncryptAESGCMEncryptPBDKF2_AESGCMHashBLAKE2BInsAESGCMInsBLAKE2BInsDecryptAESGCMInsDecryptPBDKF2_AESGCMInsDerivePBDKF2InsEncryptAESGCMInsEncryptPBDKF2_AESGCMInsPBDKF2OutsAESGCMOutsBLAKE2BOutsDecryptAESGCMOutsDerivePBDKF2OutsEncryptAESGCMOutsPBDKF2
- cryptoolz.crypto.constants module
- cryptoolz.crypto.data module
- Module contents
Submodules¶
cryptoolz.base module¶
cryptoolz.factory module¶
- class cryptoolz.factory.Factory(constructor: Callable[..., FactoryItem], exception_handler: Callable[[Exception], None] = None, defaults: Optional[dict[str, Any]] = None, maxsize=0)[source]¶
Bases:
Queue,Generic[FactoryItem]- constructor: Callable[..., FactoryItem]¶
- defaults: Optional[dict[str, Any]] = None¶
- put(*args, **kwargs) Any¶
Put an item into the queue.
If optional args ‘block’ is true and ‘timeout’ is None (the default), block if necessary until a free slot is available. If ‘timeout’ is a non-negative number, it blocks at most ‘timeout’ seconds and raises the Full exception if no free slot was available within that time. Otherwise (‘block’ is false), put an item on the queue if a free slot is immediately available, else raise the Full exception (‘timeout’ is ignored in that case).
- stored: List[FactoryItem] = []¶
cryptoolz.printer module¶
- class cryptoolz.printer.FormatWriter[source]¶
Bases:
Writer- character_encoding: str = 'ascii'¶
- decode_template_pattern: str¶
- format_template: str = None¶
- format_template_base: str¶
- class cryptoolz.printer.PEMWriter[source]¶
Bases:
FormatWriter- decode(*args, **kwargs)¶
- decode_template_pattern: str = '-+(BEGIN|END) [ A-Z]+-+'¶
- encode(*args, **kwargs)¶
- format_template_base: str = '-----BEGIN {}-----\n\n{}\n\n-----END {}-----\n'¶
- class cryptoolz.printer.Printer(maxsize=0)[source]¶
Bases:
Queue- put(*args, **kwargs) Any¶
Put an item into the queue.
If optional args ‘block’ is true and ‘timeout’ is None (the default), block if necessary until a free slot is available. If ‘timeout’ is a non-negative number, it blocks at most ‘timeout’ seconds and raises the Full exception if no free slot was available within that time. Otherwise (‘block’ is false), put an item on the queue if a free slot is immediately available, else raise the Full exception (‘timeout’ is ignored in that case).
- class cryptoolz.printer.QRCodeWriter[source]¶
Bases:
Base64Writer
- class cryptoolz.printer.Writer[source]¶
Bases:
ABCDerived classes of this base class should implement logic for essentially writing data to some buffer, preparing that data for writing, and also decoding it when reading it out of some buffer.
Encoding and decoding thus, is not to be taken in the str and bytes sense, of encoding to bytes and decoding from bytes to str, and instead in the sense of encoding arbitrary data in some way, and decoding it back to some format.
We specify that each function has to at least take one data argument. Everything further is laissez faire including narrowing and expanding arguments in derived classes to enforce behaviour.
cryptoolz.utils module¶
Module contents¶
Top-level package for cryptoolz.