SSEAL / LABMicrosoft SEAL ↗

A BROWSER-ONLY FHE DEMO

Compute on data
you can’t see.

Explore exact BFV integer arithmetic and approximate CKKS vector arithmetic. Add, multiply, or rotate encrypted values, then decrypt in your browser.

BFV · exact integersCKKS · approximate vectorsWebAssembly · SEAL 4.7.0
THE COMPUTATION
Enc(a)+Enc(b)
↓ evaluate while encrypted
Enc(a + b)
↓ decrypt in your browser
a + b = answer
Your secret key stays in this browser tab.

TRY A COMPUTATION

Encrypted computing lab

Runs locally
Loading the Microsoft SEAL WebAssembly module…
Show BFV key generation steps
  1. Create BFV parameters and a fresh encryption context.
  2. Generate a secret key and matching public key.
  3. Generate relinearization keys only for multiplication.
  4. Encrypt the inputs, evaluate the ciphertexts, then decrypt locally.
01Generate keys
02Encrypt values
03Evaluate ciphertexts
04Decrypt locally

WHAT THIS SHOWS

Encrypted values.
Different kinds of math.

BFV gives exact integer addition and multiplication. CKKS works with approximate real vectors, supporting slot-wise addition, multiplication, and rotations. CKKS multiplication needs relinearization and rescaling; rotations use Galois keys. The demo generates only the rotation key needed for the selected shift.

This is a learning demo, not a secure service for real data. It runs the entire operation in your browser; it does not send inputs or keys to a cloud evaluator. CKKS results are approximate, and the sample parameters are for demonstration only.

SEAL CKKS example ↗
SEAL vector rotation example ↗