Update README.md

This commit is contained in:
Sefik Ilkin Serengil 2025-03-09 14:31:29 +00:00 committed by GitHub
parent e63c33c20d
commit 5aec692632
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -384,12 +384,12 @@ from lightphe import LightPHE
# build an additively homomorphic cryptosystem (e.g. Paillier) on-prem
cs = LightPHE(algorithm_name = "Paillier", precision = 19)
# define a plain vector for source
alpha = DeepFace.represent("img1.jpg")[0]["embedding"] # user tower
# export keys
cs.export_keys("secret.txt"); cs.export_keys("public.txt", public=True)
# define a plain vector for source
alpha = DeepFace.represent("img1.jpg")[0]["embedding"] # user tower
# encrypt source embedding
encrypted_alpha = cs.encrypt(alpha)