message_cipher.encrypter module
Abstract encrypter module.
This module defines the Decrypter class, which is a purely abstract base class (interface) for implementing various ciphers.
- class message_cipher.encrypter.Encrypter
Bases:
object
Encrypter acts as an interface for any object capable of encrypting messages.
- abstract encrypt(plaintext: str) Iterable[Any]
Encrypts the contents of
plaintext
.- Parameters:
plaintext (str) – A message to be encrypted.
- Returns:
The encrypted message.
- Return type:
Iterable[Any]