Backend of PyFLocker¶
- class pyflocker.ciphers.backends.Backends(value)[source]¶
Bases:
Enum
The backends of PyFLocker.
- CRYPTOGRAPHY = 'cryptography'¶
- CRYPTODOME = 'cryptodome'¶
- pyflocker.ciphers.backends.load_algorithm(name: str, backend: Backends | None = None) types.ModuleType [source]¶
Load a specific algorithm from the given
backend
.- Parameters:
name – The name of the algorithm.
backend – The backend to use.
- Returns:
Algorithm module from the required backend.
- Return type:
module
- Raises:
UnsupportedAlgorithm – This is raised if the algorithm is not found in the backend.
- pyflocker.ciphers.backends.load_backend(backend: Backends | None = None) types.ModuleType [source]¶
Load a backend.
- Parameters:
backend – An attribute from
Backends
class.- Returns:
The backend module.
- Return type:
module