一种用户属性匹配方法及终端组成比例

技术编号:18466101 阅读:22 留言:0更新日期:2018-07-18 16:04
一种用户属性匹配方法及终端。所述方法包括第一终端利用ElGamal算法生成密钥(S101);所述第一终端利用所述公钥对所述第一终端的第一用户属性值向量进行加密,形成第一密文(S102);所述第一终端将所述第一密文和所述公钥发送给第二终端,以使所述第二终端将所述第二终端的第二用户属性值向量与接收的所述第一密文进行计算,得到第二密文,并利用所述公钥对所述第二用户属性值向量的模进行加密,得到第三密文,并将所述第二密文和所述第三密文发送给所述第一终端(S103);所述第一终端接收所述第二终端发送的所述第二密文和所述第三密文(S104);所述第一终端根据所述私钥,对接收到的所述第二密文和所述第三密文进行解密(S105);所述第一终端根据解密后的所述第二密文和所述第三密文,得到所述第一终端和所述第二终端的用户属性的匹配的相似度(S106)。所述方法无需知道用户属性值的明文,从而通过轻量级的运算,在保护用户隐私的前提下,得到了用户属性信息的匹配结果,提高了匹配效率,减轻了终端的运算负担。

A user attribute matching method and terminal

A user attribute matching method and terminal. The method includes the first terminal using the ElGamal algorithm to generate a key (S101); the first terminal uses the public key to encrypt the first user attribute value vector of the first terminal to form a first cipher (S102); the first terminal sends the first cipher and the public key to the second terminal to enable the second end to end. At the end, the second user attribute value vector of the second terminal is calculated with the received first ciphertext, and the second ciphertext is obtained, and the module of the second user attribute value vector is encrypted with the public key, and the third ciphertext is obtained, and the second ciphertext and the third ciphertext are sent to the first terminal (S103). The first terminal receives the second ciphertext and the third ciphertext (S104) sent by the second terminal; the first terminal decrypts the received second ciphertext and the third ciphertext according to the private key (S105); the first terminal is based on the decrypted second cipher and the third ciphertext. The matching degree of similarity (S106) to the user attributes of the first terminal and the second terminal. The proposed method does not need to know the plaintext of the user's attribute value, thus the matching result of the user's attribute information is obtained on the premise of protecting the user's privacy by lightweight operation, which improves the matching efficiency and reduces the computing burden of the terminal.

【技术实现步骤摘要】
【国外来华专利技术】PCT国内申请,说明书已公开。

【技术保护点】
PCT国内申请,权利要求书已公开。

【技术特征摘要】
【国外来华专利技术】PCT国内申请,...

【专利技术属性】
技术研发人员:王玉峰许静
申请(专利权)人:华为技术有限公司
类型:发明
国别省市:广东,44

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1