CipherFace: A Fully Homomorphic Encryption-Driven Framework for Secure Cloud-Based Facial Recognition

Sefik Serengil, Alper Ozpinar
2/22/2025
cs.CRcs.CVcs.LG

Official code: serengil/cipherface (20 stars, MIT, last commit 2025-07-09).

Abstract

Facial recognition systems rely on embeddings to represent facial images and determine identity by verifying if the distance between embeddings is below a pre-tuned threshold. While embeddings are not reversible to original images, they still contain sensitive information, making their security critical. Traditional encryption methods like AES are limited in securely utilizing cloud computational power for distance calculations. Homomorphic Encryption, allowing calculations on encrypted data, offers a robust alternative. This paper introduces CipherFace, a homomorphic encryption-driven framework for secure cloud-based facial recognition, which we have open-sourced at http://github.com/serengil/cipherface. By leveraging FHE, CipherFace ensures the privacy of embeddings while utilizing the cloud for efficient distance computation. Furthermore, we propose a novel encrypted distance computation method for both Euclidean and Cosine distances, addressing key challenges in performing secure similarity calculations on encrypted data. We also conducted experiments with different facial recognition models, various embedding sizes, and cryptosystem configurations, demonstrating the scalability and effectiveness of CipherFace in real-world applications.

View on arXivView PDF

Code Implementations(1)

MIT

A Homomorphic Encryption-Driven Python Framework for Secure Cloud-Based Facial Recognition

204Shell, PythonFeb 21, 20251 years agoMIT
cryptographyface-recognitionfacial-recognitionfhehomomorphic-encryption+3 more

Cite this paper

@article{serengil2025cipherface,
  title  = {CipherFace: A Fully Homomorphic Encryption-Driven Framework for Secure Cloud-Based Facial Recognition},
  author = {Sefik Serengil and Alper Ozpinar},
  year   = {2025},
  eprint = {2502.18514},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.18514v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.18514.svg)](https://codeofpaper.com/paper/2502.18514)

Discussion