decode
Engine.decode(plaintext)
- Converts an encoded plaintext into a
numpy.ndarray
.
- Input:
- Plaintext
- Output:
- numpy.ndarray
from desilofhe import Engine
engine = Engine()
message = [1, 2, 3]
encoded = engine.encode(message)
decoded = engine.decode(encoded)
Typically, the decode function is handled internally within the decrypt function, so it does not need to be called separately.