decode
GLEngine.decode(plaintext)- Converts an encoded plaintext into a
numpy.ndarray, whose shape is equal to the shape of the engine.
- Input:
- GLPlaintext
- Output:
- numpy.ndarray
import numpy as np
from desilofhe import GLEngine
engine = GLEngine()
message = np.ones(engine.shape)
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.