what is the output encoding of ucryptolib.encrypt ?
From the documentation:
Encrypt in_buf . If no out_buf is given result is returned as a newly allocated
bytesobject. Otherwise, result is written into mutable buffer out_buf . in_buf and out_buf can also refer to the same mutable buffer, in which case data is encrypted in-place.
So no encoding, output is bytes.