From 6c1670a2df585fb32c59cc3279d7a97bbb43f97c Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Wed, 5 Mar 2025 09:47:28 +0000 Subject: [PATCH] Update README.md explain encrypt embedding section --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 878fbe2..0d499f4 100644 --- a/README.md +++ b/README.md @@ -454,6 +454,8 @@ def proof_of_work(encrypted_cosine_similarity): print("different persons") ``` +In this scheme, we leverage the computational power of the cloud to compute encrypted cosine similarity. However, the cloud has no knowledge of the actual calculations it performs. Only the secret key holder on the on-premises side can decrypt the encrypted cosine similarity and determine whether the pair represents the same person or different individuals. + Check out [`LightPHE`](https://github.com/serengil/LightPHE) library to find out more about partially homomorphic encryption. Additionally, you can opt for fully homomorphic encryption (FHE) instead of partially homomorphic encryption (PHE). However, FHE has certain limitations, including larger ciphertexts and keys, higher computational demands, and unsuitability for memory-constrained environments. Nevertheless, if you are determined to use FHE over PHE, you may consider exploring the [`CipherFace`](https://github.com/serengil/cipherface) library. It integrates DeepFace and TenSEAL, offering a simple interface for encrypting vector embeddings using FHE.