bobocep.dist.crypto.crypto.BoboDistributedCrypto
- class bobocep.dist.crypto.crypto.BoboDistributedCrypto[source]
Bases:
abc.ABCAbstract class for distributed crypto.
- __init__()
- abstract decrypt(msg_bytes: bytes) str[source]
- Parameters
msg_bytes – Message to decrypt.
- Returns
Decrypted message.
- abstract encrypt(msg_str: str) bytes[source]
- Parameters
msg_str – Message to encrypt.
- Returns
Encrypted message.