BGV Encryption Demo

A zero-dependency implementation of homomorphic addition using the BGV scheme.

Controls

1. Setup Phase

Generate Public Key (pk) and Secret Key (sk). Parameters: N=16, Q=868, P=7.

2. Encryption Phase

Enter two integers (0-6) to encrypt (modulo P=7).

3. Computation Phase (Cloud)

Perform addition on the encrypted ciphertexts without knowing the raw data.

4. Decryption Phase

Use the secret key to decrypt the result.

Operation Log

Waiting for action...