TenSEAL (v0.3.16) is a Python library providing homomorphic encryption operations on tensors, built on Microsoft SEAL. It enables computations on encrypted data without decrypting it, enhancing privacy for machine learning and other applications. Releases are frequent, often incorporating updates from the underlying SEAL library and expanding Python version support.
pip install tensealVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates setting up a TenSEAL context for the CKKS scheme, encrypting two vectors, performing homomorphic addition on them, and then decrypting the result. It highlights the critical steps of context initialization, key generation, and scale setting for encrypted computations.
Upgrade to Python 3.8 or newer, or pin TenSEAL to version <=0.3.14.
Carefully consult TenSEAL and SEAL documentation for appropriate parameter selection based on security requirements, desired precision, and the complexity of operations. Start with recommended parameters for common schemes.
Optimize vector sizes, choose the smallest secure parameters, and consider algorithmic changes to reduce the number or complexity of encrypted operations. Use TenSEAL's built-in optimized operations where possible.
After upgrading TenSEAL to a new minor version (especially one that updates the underlying SEAL version), review and re-validate your encryption context parameters and test critical operations.
No dependency data recorded yet.