摘要
针对在线婚介系统中用户隐私数据易泄露的问题,提出一种基于鸿蒙平台与CKKS同态加密方案的婚介系统设计与实现方法。首先,阐述了CKKS同态加密的基本原理及技术特点,采用Microsoft SEAL开源库进行数据加密,确保用户数据在上传和存储过程中始终处于密文状态;其次,设计了基于用户基本特征的特征匹配算法,通过计算密文向量的同态相似度,实现对加密用户数据的精准匹配和推荐;最后,在系统架构设计方面,利用鸿蒙系统的Ability架构特性,清晰划分客户端与服务器端功能模块。结果表明,系统在保护用户隐私的同时,相比明文匹配推荐,在密文状态下的匹配计算准确率可达99.9%,具备良好的安全性和实用性,为隐私保护型婚介应用提供了可行方案。
To address the issue of user privacy data leakage in online matchmaking systems,this paper proposes a design and implementation method for a privacy-preserving matchmaking system based on the HarmonyOS platform and the CKKS homomorphic encryption scheme.First,the fundamental principles and technical features of the CKKS approximate homomorphic encryption scheme are introduced.The Microsoft SEAL open-source library is utilized to perform data encryption,ensuring that user data remains encrypted throughout the upload and storage processes.Second,a feature matching algorithm based on users’basic attributes is designed.By computing the homomorphic similarity of ciphertext vectors,the system achieves accurate matching and recommendation of encrypted user profiles.In terms of system architecture,the design fully leverages the HarmonyOS Ability framework to clearly separate client-side and server-side functional modules.Experimental results demonstrate that the proposed system effectively protects user privacy while achieving a matching accuracy of up to 99.9%under ciphertext conditions—comparable to plaintext matching.The system delivers efficient and accurate feature matching,offering strong security and practical applicability,thereby providing a feasible solution for privacy-preserving matchmaking applications.
作者
杨军伟
欧东阳
YANG Junwei;OU Dongyang(College of Economics and Information,Zhejiang Tongji Vocational College of Science and Technology,Hangzhou 311200,China;School of Computer Science,Hanzhou Dianzi University,Hangzhou 310018,China)
出处
《软件导刊》
2025年第8期152-157,共6页
Software Guide
基金
浙江同济科技职业学院校级一般科研项目(FRF24YB014)。