{"title":"Similarity calculation based on homomorphic encryption","authors":"Abel C. H. Chen","doi":"10.1002/appl.202300098","DOIUrl":null,"url":null,"abstract":"<p>In recent years, some homomorphic encryption algorithms have been proposed to provide additive homomorphic encryption and multiplicative homomorphic encryption. However, similarity measures are required for searches and queries under homomorphic encrypted ciphertexts. Therefore, this study considers cosine similarity, angular similarity, Tanimoto similarity, and soft cosine similarity and combines homomorphic encryption algorithms for similarity calculation to propose homomorphic encryption-based cosine similarity (HE-CS), homomorphic encryption-based angular similarity (HE-AS), homomorphic encryption-based Tanimoto similarity (HE-TS), and homomorphic encryption-based soft cosine similarity (HE-SCS). This study proposes mathematical models to prove the proposed homomorphic encryption-based similarity calculation methods and gives practical cases to explain the feasibility of the proposed HE-CS, HE-AS, HE-TS, and HE-SCS. Furthermore, this study proposes normalized entropy and normalized Gini impurity as evaluation factors to measure the randomness and confusion of ciphertext. In experiments, the values of normalized entropy and normalized Gini impurity are higher than 0.999, which indicates significant differences between plaintexts and ciphertexts. Moreover, the encryption time and decryption time of the proposed homomorphic encryption-based similarity calculation methods have been evaluated under different security strengths.</p>","PeriodicalId":100109,"journal":{"name":"Applied Research","volume":"3 6","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-06-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1002/appl.202300098","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applied Research","FirstCategoryId":"1085","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/appl.202300098","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
In recent years, some homomorphic encryption algorithms have been proposed to provide additive homomorphic encryption and multiplicative homomorphic encryption. However, similarity measures are required for searches and queries under homomorphic encrypted ciphertexts. Therefore, this study considers cosine similarity, angular similarity, Tanimoto similarity, and soft cosine similarity and combines homomorphic encryption algorithms for similarity calculation to propose homomorphic encryption-based cosine similarity (HE-CS), homomorphic encryption-based angular similarity (HE-AS), homomorphic encryption-based Tanimoto similarity (HE-TS), and homomorphic encryption-based soft cosine similarity (HE-SCS). This study proposes mathematical models to prove the proposed homomorphic encryption-based similarity calculation methods and gives practical cases to explain the feasibility of the proposed HE-CS, HE-AS, HE-TS, and HE-SCS. Furthermore, this study proposes normalized entropy and normalized Gini impurity as evaluation factors to measure the randomness and confusion of ciphertext. In experiments, the values of normalized entropy and normalized Gini impurity are higher than 0.999, which indicates significant differences between plaintexts and ciphertexts. Moreover, the encryption time and decryption time of the proposed homomorphic encryption-based similarity calculation methods have been evaluated under different security strengths.