Extending homomorphic algorithms for encrypted text comparison

Fully Homomorphic Encryption (FHE) enables computation on encrypted data without revealing its content, offering strong privacy guarantees for sensitive applications. Despite its potential, current FHE libraries lack native support for string operations, limiting their applicability in domains where textual data is prevalent. This paper introduces a novel algorithm for encrypted string comparison that allows the detection of matches between a query string and a target string, both encrypted under an FHE scheme. The ability to perform private string search is crucial in scenarios where sensitive identifiers must be searched without exposing either the query or the database contents. The proposed algorithm operates entirely within the encrypted domain, preserving data confidentiality throughout the process and avoiding leakage through access patterns or interaction. This work describes the design of the algorithm, proposes an implementation compatible with existing FHE frameworks, and validates its correctness and performance through experimental evaluation. The results obtained demonstrate the feasibility of secure and efficient string matching in homomorphically encrypted environments, addressing a critical limitation in current FHE-based solutions and paving the way for privacy-preserving search capabilities in real-world applications.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-04-21
DOI
https://doi.org/10.1038/s41598-026-48255-2
Primary Topic
Cryptography and Data Security
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Extending homomorphic algorithms for encrypted text comparison

Iñaki Seco, Eduardo Jacob, Julen Bernabé-Rodríguez, Cristina Regueiro
Scientific Reports
Cryptography and Data Security
article

Extending homomorphic algorithms for encrypted text comparison

Iñaki Seco, Eduardo Jacob, Julen Bernabé-Rodríguez, Cristina Regueiro
article en

Abstract

Fully Homomorphic Encryption (FHE) enables computation on encrypted data without revealing its content, offering strong privacy guarantees for sensitive applications. Despite its potential, current FHE libraries lack native support for string operations, limiting their applicability in domains where textual data is prevalent. This paper introduces a novel algorithm for encrypted string comparison that allows the detection of matches between a query string and a target string, both encrypted under an FHE scheme. The ability to perform private string search is crucial in scenarios where sensitive identifiers must be searched without exposing either the query or the database contents. The proposed algorithm operates entirely within the encrypted domain, preserving data confidentiality throughout the process and avoiding leakage through access patterns or interaction. This work describes the design of the algorithm, proposes an implementation compatible with existing FHE frameworks, and validates its correctness and performance through experimental evaluation. The results obtained demonstrate the feasibility of secure and efficient string matching in homomorphically encrypted environments, addressing a critical limitation in current FHE-based solutions and paving the way for privacy-preserving search capabilities in real-world applications.

Scientific Reports
University of the Basque Country (ES), Euskadiko Parke Teknologikoa (ES)
European Commission, HORIZON EUROPE Framework Programme
Openalex Percentile: Top 7%
Cryptography and Data Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.