CN115442127A - Transmission data processing method and device - Google Patents
Transmission data processing method and device Download PDFInfo
- Publication number
- CN115442127A CN115442127A CN202211064548.3A CN202211064548A CN115442127A CN 115442127 A CN115442127 A CN 115442127A CN 202211064548 A CN202211064548 A CN 202211064548A CN 115442127 A CN115442127 A CN 115442127A
- Authority
- CN
- China
- Prior art keywords
- ciphertext
- transmission
- data
- prime number
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 317
- 238000003672 processing method Methods 0.000 title abstract description 44
- 238000000034 method Methods 0.000 claims abstract description 62
- 238000012545 processing Methods 0.000 claims description 50
- 238000004590 computer program Methods 0.000 claims description 26
- 238000010586 diagram Methods 0.000 description 28
- 230000008569 process Effects 0.000 description 22
- 238000004422 calculation algorithm Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000012546 transfer Methods 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 101100217298 Mus musculus Aspm gene Proteins 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000009365 direct transmission Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/045—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply hybrid encryption, i.e. combination of symmetric and asymmetric encryption
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Storage Device Security (AREA)
Abstract
Description
技术领域technical field
本发明涉及信息安全技术领域,具体涉及传输数据处理方法及装置。The invention relates to the technical field of information security, in particular to a transmission data processing method and device.
背景技术Background technique
目前,大部分国内银行在利用文件传输协议(File Transfer Protocol,简称FTP)技术进行信息传输。At present, most domestic banks are using File Transfer Protocol (FTP for short) technology for information transmission.
FTP技术并没有对密码安全做出规定,在应用FTP技术的客户端和服务器端,数据以明文的形式传输,存在数据被泄露的风险,比如通过嗅探获取数据。为了提高数据传输的安全,采用安全套接层(Secure Socket Layer,简称SSL)封装FTP,由于FTP通过建立多次链接进行数据传输,即便是保护了密码安全,也很难保证数据传输的安全性。FTP technology does not provide for password security. On the client side and server side using FTP technology, data is transmitted in plain text, and there is a risk of data leakage, such as obtaining data through sniffing. In order to improve the security of data transmission, Secure Socket Layer (SSL) is used to encapsulate FTP. Since FTP transmits data by establishing multiple links, it is difficult to guarantee the security of data transmission even if the password security is protected.
发明内容Contents of the invention
针对现有技术中的问题,本发明实施例提供传输数据处理方法及装置,能够至少部分地解决现有技术中存在的问题。Aiming at the problems in the prior art, embodiments of the present invention provide a transmission data processing method and device, which can at least partly solve the problems in the prior art.
第一方面,本发明提出一种传输数据处理方法,包括:In a first aspect, the present invention proposes a transmission data processing method, including:
根据第一公钥、第一随机整数以及第一素数,获得第一中间数,并根据第一公开数、所述第一随机整数以及所述第一素数,获得第一密文;其中,所述第一公钥是预先从第二终端接收的;所述第一素数以及所述第一公开数是预先获得的;Obtain the first intermediate number according to the first public key, the first random integer and the first prime number, and obtain the first ciphertext according to the first public number, the first random integer and the first prime number; wherein, The first public key is received from the second terminal in advance; the first prime number and the first public number are obtained in advance;
根据所述第一中间数和所述第一素数加密待传输数据,获得第二密文;Encrypting data to be transmitted according to the first intermediate number and the first prime number to obtain a second ciphertext;
根据所述第一密文和所述第二密文,获得第一传输密文;Obtain a first transmission ciphertext according to the first ciphertext and the second ciphertext;
发送第一传输数据至所述第二终端;其中,所述第一传输数据包括所述第一传输密文和所述第一公钥。Sending first transmission data to the second terminal; wherein, the first transmission data includes the first transmission ciphertext and the first public key.
第二方面,本发明提供一种传输数据处理方法,包括:In a second aspect, the present invention provides a transmission data processing method, including:
接收第一终端发送的第一传输数据;其中,所述第一传输数据包括第一传输密文和第一公钥;receiving first transmission data sent by the first terminal; wherein the first transmission data includes a first transmission ciphertext and a first public key;
从所述第一传输密文解析获得第一密文和第二密文;Obtaining a first ciphertext and a second ciphertext by parsing the first transmission ciphertext;
根据所述第一密文、第一私钥以及第一素数,获得第二中间数;其中,所述第一私钥是根据所述第一公钥获得的;Obtaining a second intermediate number according to the first ciphertext, the first private key and the first prime number; wherein the first private key is obtained according to the first public key;
根据所述第二中间数和所述第一素数解密所述第二密文,获得所述第二密文对应的原数据。Decrypt the second ciphertext according to the second intermediate number and the first prime number to obtain original data corresponding to the second ciphertext.
第三方面,本发明提供一种传输数据处理方法,包括:In a third aspect, the present invention provides a transmission data processing method, including:
接收第三终端发送的数据转发请求;其中,所述数据转发请求包括转发数据和第四终端标识,所述转发数据为所述第三终端加密后的数据;receiving a data forwarding request sent by a third terminal; wherein the data forwarding request includes forwarding data and a fourth terminal identifier, and the forwarding data is encrypted data by the third terminal;
根据第二公钥、第二随机整数以及第二素数,获得第三中间数,并根据第二公开数、所述第二随机整数以及所述第二素数,获得第三密文;其中,所述第二公钥是根据第四终端标识获得的;所述第二公开数和所述第二素数是预先获得的;According to the second public key, the second random integer and the second prime number, obtain the third intermediate number, and obtain the third ciphertext according to the second public number, the second random integer and the second prime number; wherein, the The second public key is obtained according to the fourth terminal identifier; the second public number and the second prime number are obtained in advance;
根据所述第三中间数和所述第二素数对所述转发数据进行加密,获得第四密文;Encrypting the forwarded data according to the third intermediate number and the second prime number to obtain a fourth ciphertext;
根据所述第三密文和所述第四密文,获得第二传输密文;Obtain a second transmission ciphertext according to the third ciphertext and the fourth ciphertext;
发送第二传输数据至所述第四终端;其中,所述第二传输数据包括所述第二传输密文和所述第二公钥。Sending second transmission data to the fourth terminal; wherein, the second transmission data includes the second transmission ciphertext and the second public key.
第四方面,本发明提供一种传输数据处理方法,包括:In a fourth aspect, the present invention provides a transmission data processing method, including:
接收服务器发送的第二传输数据;其中,所述第二传输数据包括第二传输密文和第二公钥;receiving second transmission data sent by the server; wherein the second transmission data includes a second transmission ciphertext and a second public key;
解析所述第二传输密文获得第三密文和第四密文;根据所述第三密文、第二私钥以及第二素数,获得第四中间数;其中,所述第二私钥是根据所述第二公钥获得的;Analyzing the second transmission ciphertext to obtain a third ciphertext and a fourth ciphertext; according to the third ciphertext, the second private key and the second prime number, a fourth intermediate number is obtained; wherein the second private key obtained according to the second public key;
根据所述第四中间数和所述第二素数解密所述第四密文,获得所述第四密文对应的原数据;Decrypting the fourth ciphertext according to the fourth intermediate number and the second prime number to obtain original data corresponding to the fourth ciphertext;
对所述第四密文对应的原数据进行解密,获得原始数据。Decrypt the original data corresponding to the fourth ciphertext to obtain the original data.
第五方面,本发明提供一种传输数据处理装置,包括:In a fifth aspect, the present invention provides a transmission data processing device, including:
第一获得模块,用于根据第一公钥、第一随机整数以及第一素数,获得第一中间数,并根据第一公开数、所述第一随机整数以及所述第一素数,获得第一密文;其中,所述第一公钥是预先从第二终端接收的;所述第一素数以及所述第一公开数是预先获得的;The first obtaining module is used to obtain the first intermediate number according to the first public key, the first random integer and the first prime number, and obtain the second public number according to the first public number, the first random integer and the first prime number A ciphertext; wherein, the first public key is received from the second terminal in advance; the first prime number and the first public number are obtained in advance;
第二获得模块,用于根据所述第一中间数和所述第一素数加密待传输数据,获得第二密文;A second obtaining module, configured to encrypt data to be transmitted according to the first intermediate number and the first prime number, and obtain a second ciphertext;
第三获得模块,用于根据所述第一密文和所述第二密文,获得第一传输密文;A third obtaining module, configured to obtain a first transmission ciphertext according to the first ciphertext and the second ciphertext;
第一发送模块,用于发送第一传输数据至所述第二终端;其中,所述第一传输数据包括所述第一传输密文和所述第一公钥。A first sending module, configured to send first transmission data to the second terminal; wherein the first transmission data includes the first transmission ciphertext and the first public key.
第六方面,本发明提供一种传输数据处理装置,包括:In a sixth aspect, the present invention provides a transmission data processing device, including:
第一接收模块,用于接收第一终端发送的第一传输数据;其中,所述第一传输数据包括第一传输密文和第一公钥;The first receiving module is configured to receive the first transmission data sent by the first terminal; wherein the first transmission data includes a first transmission ciphertext and a first public key;
第一解析模块,用于从所述第一传输密文解析获得第一密文和第二密文;A first parsing module, configured to analyze and obtain a first ciphertext and a second ciphertext from the first transmission ciphertext;
第五获得模块,用于根据所述第一密文、第一私钥以及第一素数,获得第二中间数;其中,所述第一私钥是根据所述第一公钥获得的;A fifth obtaining module, configured to obtain a second intermediate number according to the first ciphertext, the first private key and the first prime number; wherein the first private key is obtained according to the first public key;
第一解密模块,用于根据所述第二中间数和所述第一素数解密所述第二密文,获得所述第二密文对应的原数据。A first decryption module, configured to decrypt the second ciphertext according to the second intermediate number and the first prime number, and obtain original data corresponding to the second ciphertext.
第七方面,本发明提供一种传输数据处理装置,包括:In a seventh aspect, the present invention provides a transmission data processing device, including:
第二接收模块,用于接收第三终端发送的数据转发请求;其中,所述数据转发请求包括转发数据和第四终端标识,所述转发数据为所述第三终端加密后的数据;The second receiving module is configured to receive a data forwarding request sent by a third terminal; wherein the data forwarding request includes forwarding data and a fourth terminal identifier, and the forwarding data is encrypted data by the third terminal;
第六获得模块,用于根据第二公钥、第二随机整数以及第二素数,获得第三中间数,并根据第二公开数、所述第二随机整数以及所述第二素数,获得第三密文;其中,所述第二公钥是根据第四终端标识获得的;所述第二公开数和所述第二素数是预先获得的;The sixth obtaining module is used to obtain the third intermediate number according to the second public key, the second random integer and the second prime number, and obtain the third intermediate number according to the second public number, the second random integer and the second prime number Three ciphertexts; wherein, the second public key is obtained according to the fourth terminal identification; the second public number and the second prime number are obtained in advance;
第七获得模块,用于根据所述第三中间数和所述第二素数对所述转发数据进行加密,获得第四密文;A seventh obtaining module, configured to encrypt the forwarded data according to the third intermediate number and the second prime number to obtain a fourth ciphertext;
第八获得模块,用于根据所述第三密文和所述第四密文,获得第二传输密文;An eighth obtaining module, configured to obtain a second transmission ciphertext according to the third ciphertext and the fourth ciphertext;
第二发送模块,用于发送第二传输数据至所述第四终端;其中,所述第二传输数据包括所述第二传输密文和所述第二公钥。A second sending module, configured to send second transmission data to the fourth terminal; wherein the second transmission data includes the second transmission ciphertext and the second public key.
第八方面,本发明提供一种传输数据处理装置,包括:In an eighth aspect, the present invention provides a transmission data processing device, including:
第三接收模块,用于接收服务器发送的第二传输数据;其中,所述第二传输数据包括第二传输密文和第二公钥;The third receiving module is configured to receive the second transmission data sent by the server; wherein, the second transmission data includes a second transmission ciphertext and a second public key;
第二解析模块,用于解析所述第二传输密文获得第三密文和第四密文;A second parsing module, configured to parse the second transmission ciphertext to obtain a third ciphertext and a fourth ciphertext;
第九获得模块,用于根据所述第三密文、第二私钥以及第二素数,获得第四中间数;其中,所述第二私钥是根据所述第二公钥获得的;A ninth obtaining module, configured to obtain a fourth intermediate number according to the third ciphertext, the second private key and the second prime number; wherein the second private key is obtained according to the second public key;
第十获得模块,用于根据所述第四中间数和所述第二素数解密所述第四密文,获得所述第四密文对应的原数据;A tenth obtaining module, configured to decrypt the fourth ciphertext according to the fourth intermediate number and the second prime number, and obtain original data corresponding to the fourth ciphertext;
第二解密模块,用于对所述第四密文对应的原数据进行解密,获得原始数据。The second decryption module is configured to decrypt the original data corresponding to the fourth ciphertext to obtain the original data.
第九方面,本发明提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述任一实施例所述传输数据处理方法。In a ninth aspect, the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, it implements any of the above-mentioned embodiments. Transfer data processing method.
第十方面,本发明提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述任一实施例所述传输数据处理方法。In a tenth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the transmission data processing method described in any one of the above-mentioned embodiments is implemented.
第十一方面,本发明提供一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现上述任一实施例所述传输数据处理方法。In an eleventh aspect, the present invention provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the transmission data processing method described in any one of the above embodiments is implemented.
本发明实施例提供的传输数据处理方法及装置,能够根据第一公钥、第一随机整数以及第一素数,获得第一中间数,并根据第一公开数、第一随机整数以及第一素数,获得第一密文,根据第一中间数和第一素数加密待传输数据,获得第二密文,根据第一密文和第二密文,获得第一传输密文,发送携带第一传输密文和第一公钥的第一传输数据至第二终端,通过对待传输数据进行加密,提高了数据传输的安全性。The transmission data processing method and device provided by the embodiments of the present invention can obtain the first intermediate number according to the first public key, the first random integer and the first prime number, and obtain the first intermediate number according to the first public number, the first random integer and the first prime number , obtain the first ciphertext, encrypt the data to be transmitted according to the first intermediate number and the first prime number, obtain the second ciphertext, obtain the first transmission ciphertext according to the first ciphertext and the second ciphertext, and send The first transmission data of the ciphertext and the first public key are sent to the second terminal, and the security of data transmission is improved by encrypting the data to be transmitted.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work. In the attached picture:
图1是本发明第一实施例提供的传输数据处理系统的结构示意图。FIG. 1 is a schematic structural diagram of a transmission data processing system provided by a first embodiment of the present invention.
图2是本发明第二实施例提供的传输数据处理方法的流程示意图。Fig. 2 is a schematic flowchart of a transmission data processing method provided by a second embodiment of the present invention.
图3是本发明第三实施例提供的传输数据处理方法的流程示意图。Fig. 3 is a schematic flowchart of a transmission data processing method provided by a third embodiment of the present invention.
图4是本发明第四实施例提供的传输数据处理方法的流程示意图。Fig. 4 is a schematic flowchart of a transmission data processing method provided by a fourth embodiment of the present invention.
图5是本发明第五实施例提供的传输数据处理方法的流程示意图。Fig. 5 is a schematic flowchart of a transmission data processing method provided by a fifth embodiment of the present invention.
图6是本发明第六实施例提供的传输数据处理系统的结构示意图。Fig. 6 is a schematic structural diagram of a transmission data processing system provided by a sixth embodiment of the present invention.
图7是本发明第七实施例提供的传输数据处理方法的流程示意图。Fig. 7 is a schematic flowchart of a transmission data processing method provided by a seventh embodiment of the present invention.
图8是本发明第八实施例提供的传输数据处理方法的流程示意图。Fig. 8 is a schematic flowchart of a transmission data processing method provided by an eighth embodiment of the present invention.
图9是本发明第九实施例提供的传输数据处理方法的流程示意图。FIG. 9 is a schematic flowchart of a transmission data processing method provided by a ninth embodiment of the present invention.
图10是本发明第十实施例提供的传输数据处理装置的结构示意图。Fig. 10 is a schematic structural diagram of a transmission data processing device provided by a tenth embodiment of the present invention.
图11是本发明第十一实施例提供的传输数据处理装置的结构示意图。Fig. 11 is a schematic structural diagram of a transmission data processing device provided by an eleventh embodiment of the present invention.
图12是本发明第十二实施例提供的传输数据处理装置的结构示意图。Fig. 12 is a schematic structural diagram of a transmission data processing device provided by a twelfth embodiment of the present invention.
图13是本发明第十三实施例提供的传输数据处理装置的结构示意图。Fig. 13 is a schematic structural diagram of a transmission data processing device provided by a thirteenth embodiment of the present invention.
图14是本发明第十四实施例提供的传输数据处理装置的结构示意图。Fig. 14 is a schematic structural diagram of a transmission data processing device provided by a fourteenth embodiment of the present invention.
图15是本发明第十五实施例提供的传输数据处理装置的结构示意图。Fig. 15 is a schematic structural diagram of a transmission data processing device provided by a fifteenth embodiment of the present invention.
图16是本发明第十六实施例提供的传输数据处理装置的结构示意图。Fig. 16 is a schematic structural diagram of a transmission data processing device provided by a sixteenth embodiment of the present invention.
图17是本发明第十七实施例提供的传输数据处理装置的结构示意图。Fig. 17 is a schematic structural diagram of a transmission data processing device provided by a seventeenth embodiment of the present invention.
图18是本发明第十八实施例提供的电子设备的实体结构示意图。Fig. 18 is a schematic diagram of the physical structure of the electronic device provided by the eighteenth embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例做进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
为了便于理解本申请提供的技术方案,下面先对本申请技术方案的相关内容进行说明。In order to facilitate the understanding of the technical solution provided by the present application, the relevant content of the technical solution of the present application will be described below first.
目前,银行内部的数据传输是通过邮件或者通讯软件直接进行传输,这种直接以明文方式传输的形式很难保证数据的安全性。如果传输数据涉及行内机密或者敏感数据,如果传输过程中出现个人信息或者信用卡数据等信息的泄露,造成的损失和后果难以想象。为提高数据传输的安全性,本发明实施例提出传输数据处理方法,对需要传输的数据进行加密,再对加密后的数据进行传输。At present, the internal data transmission of the bank is directly transmitted through email or communication software. This form of direct transmission in clear text is difficult to guarantee the security of data. If the transmitted data involves confidential or sensitive data in the industry, if personal information or credit card data and other information are leaked during the transmission process, the losses and consequences caused are unimaginable. In order to improve the security of data transmission, the embodiment of the present invention proposes a transmission data processing method, which encrypts the data to be transmitted, and then transmits the encrypted data.
图1是本发明第一实施例提供的传输数据处理系统的结构示意图,如图1所示,本发明实施例提供的传输数据处理系统包括第一终端1和第二终端2,其中:Fig. 1 is a schematic structural diagram of the transmission data processing system provided by the first embodiment of the present invention. As shown in Fig. 1, the transmission data processing system provided by the embodiment of the present invention includes a
第一终端1和第二终端2通信连接。第一终端1包括但不限于台式机、笔记本电脑、服务器等设备。第二终端2包括但不限于台式机、笔记本电脑、服务器等设备。The
下面以第一终端作为执行主体为例,对本发明实施例提供的传输数据处理方法的具体实现过程进行说明。The specific implementation process of the transmission data processing method provided in the embodiment of the present invention will be described below by taking the first terminal as an execution subject as an example.
图2是本发明第二实施例提供的传输数据处理方法的流程示意图,如图2所示,本发明实施例提供的传输数据处理方法,包括:Fig. 2 is a schematic flow chart of a transmission data processing method provided in the second embodiment of the present invention. As shown in Fig. 2, the transmission data processing method provided in the embodiment of the present invention includes:
S201、根据第一公钥、第一随机整数以及第一素数,获得第一中间数,并根据第一公开数、所述第一随机整数以及所述第一素数,获得第一密文;其中,所述第一公钥是预先从第二终端接收的;所述第一素数以及所述第一公开数是预先获得的;S201. Obtain a first intermediate number according to the first public key, a first random integer, and a first prime number, and obtain a first ciphertext according to a first public number, the first random integer, and the first prime number; wherein , the first public key is received from the second terminal in advance; the first prime number and the first public number are obtained in advance;
具体地,所述第一终端根据第一公钥、第一随机整数以及第一素数,可以获得第一中间数。所述第一终端根据所述第一公开数、所述第一随机整数以及所述第一素数,可以获得第一密文。其中,所述第一随机整数为随机选取的整数,优先从大于1且小于第一素数减1的范围内选择。所述第一公钥是预先从第二终端接收的;所述第一素数以及所述第一公开数是预先获得的。Specifically, the first terminal can obtain the first intermediate number according to the first public key, the first random integer, and the first prime number. The first terminal may obtain a first ciphertext according to the first public number, the first random integer, and the first prime number. Wherein, the first random integer is a randomly selected integer, preferably selected from a range greater than 1 and less than the first
进一步地,所述根据第一公钥、第一随机整数以及第一素数,获得第一中间数包括:计算第一公钥的第一随机整数次方模第一素数的结果,作为所述第一中间数。Further, said obtaining the first intermediate number according to the first public key, the first random integer and the first prime number includes: calculating the result of modulo the first prime number of the first random integer power of the first public key, as the first an intermediate number.
先计算第一公钥的第一随机整数次方的值,再计算上述值模第一素数的结果,得到所述第一中间数。First calculate the value of the first random integer power of the first public key, and then calculate the result modulo the first prime number of the above value to obtain the first intermediate number.
例如,根据公式U=yk(mod p),计算第一中间数U,其中,y表示第一公钥,k表示第一随机整数,p表示第一素数,mod表示取模运算符。For example, the first intermediate number U is calculated according to the formula U=y k (mod p), where y represents the first public key, k represents the first random integer, p represents the first prime number, and mod represents a modulo operator.
进一步地,所述根据第一公开数、所述第一随机整数以及所述第一素数,获得第一密文包括:计算第一公开数的第一随机整数次方模第一素数的结果,作为所述第一密文。Further, the obtaining the first ciphertext according to the first public number, the first random integer and the first prime number includes: calculating the result of modulo the first prime number of the first random integer power of the first public number, as the first ciphertext.
先计算第一公开数的第一随机整数次方的值,再计算上述值模第一素数的结果,得到所述第一密文。First calculate the value of the first random integer power of the first public number, and then calculate the result modulo the first prime number to obtain the first ciphertext.
例如,根据公式C1=ak(mod p),计算第一密文C1,其中,a表示第一公开数,k表示第一随机整数,p表示第一素数,mod表示取模运算符。For example, the first ciphertext C1 is calculated according to the formula C1=a k (mod p), where a represents the first public number, k represents the first random integer, p represents the first prime number, and mod represents the modulus operator.
S202、根据所述第一中间数和所述第一素数加密待传输数据,获得第二密文;S202. Encrypt data to be transmitted according to the first intermediate number and the first prime number to obtain a second ciphertext;
具体地,所述第一终端通过所述第一中间数和所述第一素数加密待传输数据,可以获得第二密文。Specifically, the first terminal may obtain a second ciphertext by encrypting the data to be transmitted by using the first intermediate number and the first prime number.
进一步地,所述根据所述第一中间数、所述第一素数加密待传输数据,获得第二密文包括:计算第一中间数与待传输数据的乘积模第一素数的结果,作为所述第二密文。Further, said encrypting the data to be transmitted according to the first intermediate number and the first prime number, and obtaining the second ciphertext includes: calculating the result of the product of the first intermediate number and the data to be transmitted modulo the first prime number, as the State the second ciphertext.
先计算第一中间数与待传输数据的乘积,再计算上述乘积模第一素数的结果,得到所述第二密文。First calculate the product of the first intermediate number and the data to be transmitted, and then calculate the result of the above product modulo the first prime number to obtain the second ciphertext.
例如,根据公式C2=UMmodp,获得第二密文C2,其中,U表示第一中间数,M表示待传输数据,p表示第一素数,mod表示取模运算符。For example, the second ciphertext C2 is obtained according to the formula C2=UMmodp, where U represents the first intermediate number, M represents the data to be transmitted, p represents the first prime number, and mod represents a modulo operator.
S203、根据所述第一密文和所述第二密文,获得第一传输密文;S203. Obtain a first transmission ciphertext according to the first ciphertext and the second ciphertext;
具体地,所述第一终端对所述第一密文和所述第二密文进行处理,可以获得第一传输密文。Specifically, the first terminal processes the first ciphertext and the second ciphertext to obtain a first transmission ciphertext.
进一步地,所述根据所述第一密文和所述第二密文,获得第一传输密文包括:Further, the obtaining the first transmission ciphertext according to the first ciphertext and the second ciphertext includes:
将所述第一密文和所述第二密文以预设字符组合,获得所述第一传输密文。Combining the first ciphertext and the second ciphertext with preset characters to obtain the first transmission ciphertext.
例如,将第一密文和第二密文用逗号进行组合,获得第一传输密文C,C表示为(C1,C2)。For example, the first ciphertext and the second ciphertext are combined with a comma to obtain the first transmission ciphertext C, and C is expressed as (C1, C2).
S204、发送第一传输数据至所述第二终端;其中,所述第一传输数据包括所述第一传输密文和所述第一公钥。S204. Send first transmission data to the second terminal; wherein the first transmission data includes the first transmission ciphertext and the first public key.
具体地,所述第一终端将所述第一传输密文和所述第一公钥携带在第一传输数据中发送给所述第二终端。所述第二终端在接收到所述第一传输数据之后,会解密所述第一传输密文,获得待传输数据。Specifically, the first terminal carries the first transmission ciphertext and the first public key in the first transmission data and sends it to the second terminal. After receiving the first transmission data, the second terminal decrypts the first transmission ciphertext to obtain the data to be transmitted.
本发明实施例提供的传输数据处理方法,能够根据第一公钥、第一随机整数以及第一素数,获得第一中间数,并根据第一公开数、第一随机整数以及第一素数,获得第一密文,根据第一中间数和第一素数加密待传输数据,获得第二密文,根据第一密文和第二密文,获得第一传输密文,发送携带第一传输密文和第一公钥的第一传输数据至第二终端,通过对待传输数据进行加密,提高了数据传输的安全性。The transmission data processing method provided by the embodiment of the present invention can obtain the first intermediate number according to the first public key, the first random integer and the first prime number, and obtain the first intermediate number according to the first public number, the first random integer and the first prime number The first ciphertext, encrypt the data to be transmitted according to the first intermediate number and the first prime number, obtain the second ciphertext, obtain the first transmission ciphertext according to the first ciphertext and the second ciphertext, and send the first transmission ciphertext The first transmission data and the first public key are sent to the second terminal, and the security of data transmission is improved by encrypting the data to be transmitted.
在上述各实施例的基础上,进一步地,所述待传输数据是经过对称加密后的数据。On the basis of the above embodiments, further, the data to be transmitted is symmetrically encrypted data.
具体地,为了进一步提高数据传输的安全性,所述第一终端对原始数据进行对称加密获得待传输数据,然后再对待传输数据进行加密。其中,对称加密的具体过程为现有技术,此处不进行赘述。可理解的是,第一终端和第二终端在进行数据传输之前,可以进行公开密钥的交换,第二终端可以基于从第一终端接收的公开密钥解密所述待传输数据。其中,原始数据可以是明文。Specifically, in order to further improve the security of data transmission, the first terminal performs symmetric encryption on the original data to obtain the data to be transmitted, and then encrypts the data to be transmitted. Wherein, the specific process of symmetric encryption is the prior art, and will not be repeated here. It can be understood that, before data transmission, the first terminal and the second terminal may exchange public keys, and the second terminal may decrypt the data to be transmitted based on the public key received from the first terminal. Wherein, the original data may be plain text.
在上述各实施例的基础上,进一步地,所述第一传输数据还包括所述待传输数据的摘要值。On the basis of the foregoing embodiments, further, the first transmission data further includes a digest value of the data to be transmitted.
具体地,为了验证待传输数据的真实性和完整性,所述第一终端计算所述待传输数据的摘要值,将所述待传输数据的摘要值携带在所述第一传输数据中发送给所述第二终端。所述第二终端可以重新计算所述待传输数据的摘要值,以验证待传输数据的真实性和完整性。Specifically, in order to verify the authenticity and integrity of the data to be transmitted, the first terminal calculates the digest value of the data to be transmitted, carries the digest value of the data to be transmitted in the first transmission data and sends to the second terminal. The second terminal may recalculate the digest value of the data to be transmitted, so as to verify the authenticity and integrity of the data to be transmitted.
例如,第一终端采用安全哈希算法(Secure Hash Algorithm),比如Sha1算法,计算所述待传输数据的摘要值。第二终端同样可以相同的算法重新计算解密后获得的待传输数据的摘要值。For example, the first terminal uses a secure hash algorithm (Secure Hash Algorithm), such as the Sha1 algorithm, to calculate the digest value of the data to be transmitted. The second terminal can also recalculate the digest value of the data to be transmitted obtained after decryption with the same algorithm.
下面以第二终端作为执行主体为例,对本发明实施例提供的传输数据处理方法的具体实现过程进行说明。The following describes the specific implementation process of the transmission data processing method provided by the embodiment of the present invention by taking the second terminal as an execution subject as an example.
图3是本发明第三实施例提供的传输数据处理方法的流程示意图,如图3所示,本发明实施例提供的传输数据处理方法包括:Fig. 3 is a schematic flowchart of a transmission data processing method provided in a third embodiment of the present invention. As shown in Fig. 3, the transmission data processing method provided in the embodiment of the present invention includes:
S301、接收第一终端发送的第一传输数据;其中,所述第一传输数据包括第一传输密文和第一公钥;S301. Receive first transmission data sent by a first terminal; wherein, the first transmission data includes a first transmission ciphertext and a first public key;
具体地,第一终端向第二终端发送第一传输数据,所述第一传输数据包括第一传输密文和第一公钥。所述第二终端会接收所述第一传输数据,并从所述第一传输数据中获得所述第一传输密文和第一公钥。其中,所述第一终端在经过步骤S201、步骤S202和步骤S203之后发送第一传输数据。Specifically, the first terminal sends first transmission data to the second terminal, where the first transmission data includes a first transmission ciphertext and a first public key. The second terminal receives the first transmission data, and obtains the first transmission ciphertext and the first public key from the first transmission data. Wherein, the first terminal sends the first transmission data after step S201, step S202 and step S203.
S302、从所述第一传输密文解析获得第一密文和第二密文;具体地,所述第二终端解析所述第一传输密文,可以获得第一密文和第二密文。其中,对所述第一传输密文的解析方式是预设的。S302. Obtain a first ciphertext and a second ciphertext by analyzing the first transmission ciphertext; specifically, the second terminal analyzes the first transmission ciphertext to obtain the first ciphertext and the second ciphertext . Wherein, the parsing method for the first transmission ciphertext is preset.
例如,第一传输密文C表示为(C1,C2),所述第二终端将括号中逗号之前的数据作为第一密文,将括号中逗号之后的数据作为第二密文。For example, the first transmission ciphertext C is expressed as (C1, C2), and the second terminal uses the data before the comma in the brackets as the first ciphertext, and uses the data after the comma in the brackets as the second ciphertext.
S303、根据所述第一密文、第一私钥以及第一素数,获得第二中间数;其中,所述第一私钥是根据所述第一公钥获得的;S303. Obtain a second intermediate number according to the first ciphertext, the first private key, and the first prime number; wherein, the first private key is obtained according to the first public key;
具体地,所述第二终端根据所述第一公钥查询获得与所述第一公钥对应的第一私钥,然后根据所述第一密文、第一私钥以及第一素数,可以获得第二中间数。其中,所述第一公钥和所述第一私钥是唯一对应的。所述第一素数和所述第一公开数是预先获得的。Specifically, the second terminal obtains the first private key corresponding to the first public key according to the first public key query, and then according to the first ciphertext, the first private key and the first prime number, can Get the second median. Wherein, the first public key and the first private key are uniquely corresponding. The first prime number and the first public number are obtained in advance.
例如,根据公式V=C1emodp,计算第二中间数V,其中,e表示第一私钥,C1表示第一密文,p表示第一素数,mod表示取模运算符。For example, the second intermediate number V is calculated according to the formula V=C1 e modp, where e represents the first private key, C1 represents the first ciphertext, p represents the first prime number, and mod represents a modulo operator.
S304、根据所述第二中间数和所述第一素数解密所述第二密文,获得所述第二密文对应的原数据。S304. Decrypt the second ciphertext according to the second intermediate number and the first prime number, and obtain original data corresponding to the second ciphertext.
具体地,所述第二终端通过所述第二中间数和所述第一素数对所述第二密文进行解密,可以获得所述第二密文对应的原数据,所述第一二密文对应的原数据即所述待传输数据。Specifically, the second terminal decrypts the second ciphertext by using the second intermediate number and the first prime number to obtain the original data corresponding to the second ciphertext, and the first and second ciphertext The original data corresponding to the text is the data to be transmitted.
例如,根据公式M=C2V-1modp,解密获得第二密文对应的原数据M,其中,V表示第二中间数,C2表示第二密文,V-1表示V的-1次方,p表示第一素数,mod表示取模运算符。For example, according to the formula M=C2V -1 modp, decrypt to obtain the original data M corresponding to the second ciphertext, wherein, V represents the second intermediate number, C2 represents the second ciphertext, V -1 represents V to the power of -1, p represents the first prime number, and mod represents the modulo operator.
本发明实施例提供的传输数据处理方法,接收第一终端发送的第一传输数据,从第一传输密文解析获得第一密文和第二密文,根据第一密文、第一私钥以及第一素数,获得第二中间数,根据第二中间数和所述第一素数解密第二密文,获得第二密文对应的原数据,能够对第一传输数据进行解密,获得第二密文对应的原数据,提高数据使用的安全性。The transmission data processing method provided by the embodiment of the present invention receives the first transmission data sent by the first terminal, analyzes and obtains the first ciphertext and the second ciphertext from the first transmission ciphertext, and obtains the first ciphertext and the second ciphertext according to the first ciphertext and the first private key. and the first prime number, obtain the second intermediate number, decrypt the second ciphertext according to the second intermediate number and the first prime number, obtain the original data corresponding to the second ciphertext, and decrypt the first transmission data to obtain the second ciphertext The original data corresponding to the ciphertext improves the security of data usage.
在上述各实施例的基础上,进一步地,所述第二密文对应的原数据为经过对称加密后的数据;相应地,所述方法还包括:On the basis of the above embodiments, further, the original data corresponding to the second ciphertext is symmetrically encrypted data; correspondingly, the method further includes:
通过对称加密密钥解密所述第二密文对应的原数据,获得原始数据;其中,所述对称加密密钥是预先获得的。The original data corresponding to the second ciphertext is decrypted by using a symmetric encryption key to obtain the original data; wherein the symmetric encryption key is obtained in advance.
具体地,所述第一终端采用对称加密算法对原始数据进行加密,得到待传输数据,即所述第二密文对应的原数据。所述第二终端在解密获得所述第二密文对应的原数据之后,会通过对称加密密钥解密所述第二密文对应的原数据,从而得到原始数据。其中,所述对称加密密钥是预先获得的。所述第二终端和所述第一终端可以通过秘钥交换,获得对称加密密钥。其中,通过对称加密算法解密的具体过程为现有技术,此处不进行赘述。Specifically, the first terminal encrypts the original data using a symmetric encryption algorithm to obtain the data to be transmitted, that is, the original data corresponding to the second ciphertext. After the second terminal decrypts and obtains the original data corresponding to the second ciphertext, it decrypts the original data corresponding to the second ciphertext by using a symmetric encryption key, so as to obtain the original data. Wherein, the symmetric encryption key is obtained in advance. The second terminal and the first terminal may exchange keys to obtain a symmetric encryption key. Wherein, the specific process of decrypting through the symmetric encryption algorithm is the prior art, and will not be repeated here.
图4是本发明第四实施例提供的传输数据处理方法的流程示意图,如图4所示,在上述各实施例的基础上,进一步地,所述第一传输数据还包括摘要值;相应地,所述方法还包括:Fig. 4 is a schematic flowchart of a transmission data processing method provided by the fourth embodiment of the present invention. As shown in Fig. 4, on the basis of the above-mentioned embodiments, further, the first transmission data further includes a digest value; correspondingly , the method also includes:
S401、对所述第一传输密文对应的原数据进行摘要值计算,获得待验证摘要值;S401. Perform digest value calculation on the original data corresponding to the first transmission ciphertext to obtain a digest value to be verified;
具体地,所述第一终端计算所述待传输数据的摘要值,将所述待传输数据的摘要值携带在所述第一传输数据中发送给所述第二终端。所述第二终端在解密获得所述第二密文对应的原数据之后,对所述第二密文对应的原数据进行摘要值计算,得到待验证摘要值。Specifically, the first terminal calculates the digest value of the data to be transmitted, carries the digest value of the data to be transmitted in the first transmission data and sends it to the second terminal. After the second terminal decrypts and obtains the original data corresponding to the second ciphertext, it performs digest value calculation on the original data corresponding to the second ciphertext to obtain a digest value to be verified.
S402、若判断获知所述待验证摘要值与所述摘要值相同,则确定所述第二密文对应的原数据完整。S402. If it is determined that the digest value to be verified is the same as the digest value, determine that the original data corresponding to the second ciphertext is complete.
具体地,所述第二终端将待验证摘要值与所述第一传输数据包括的摘要值进行比较,如果所述待验证摘要值与所述第一传输数据包括的摘要值相同,说明所述待传输数据与所述第二密文对应的原数据相同,传输过程中数据没有被篡改,所述第二密文对应的原数据完整。Specifically, the second terminal compares the digest value to be verified with the digest value included in the first transmission data, and if the digest value to be verified is the same as the digest value included in the first transmission data, it means that the The data to be transmitted is the same as the original data corresponding to the second ciphertext, the data has not been tampered with during transmission, and the original data corresponding to the second ciphertext is complete.
采用安全算法进行消息摘要计算,不同的消息文件,所生成的摘要值是不同的,所以可以通过传输双发的所生成的摘要值比对确定消息传输前后是否一致,以保证消息的完整性和真实性。A security algorithm is used for message digest calculation. Different message files have different digest values. Therefore, the digest values generated by double transmission can be compared to determine whether the message is consistent before and after transmission, so as to ensure the integrity and integrity of the message. authenticity.
图5是本发明第五实施例提供的传输数据处理方法的流程示意图,如图5所示,在上述各实施例的基础上,进一步地,本发明实施例提供的传输数据处理方法还包括:Fig. 5 is a schematic flow chart of a transmission data processing method provided in the fifth embodiment of the present invention. As shown in Fig. 5, on the basis of the above-mentioned embodiments, further, the transmission data processing method provided in the embodiment of the present invention further includes:
S501、根据所述第一私钥、第一素数以及第一公开数,获得第一公钥;其中,所述第一素数是随机选择的,所述第一公开数为模第一素数的一个原根,所述第一私钥是随机选择的整数;S501. Obtain a first public key according to the first private key, the first prime number, and the first public number; wherein, the first prime number is randomly selected, and the first public number is one modulo the first prime number The original root, the first private key is a randomly selected integer;
具体地,第二终端可以根据第一私钥、第一素数以及第一公开数获得第一公钥。所述第一私钥是随机选择的整数,优先从大于1且小于第一素数减1的范围内选择。所述第一素数是随机选择的素数,优选大于预设值且第一素数减1的值能够分解一个大于预设值的素数。第一公开数为模第一素数的一个原根。第一公开数和第一素数是公开的。Specifically, the second terminal may obtain the first public key according to the first private key, the first prime number, and the first public number. The first private key is a randomly selected integer, preferably selected from a range greater than 1 and less than the first
进一步地,所述根据第一私钥、第一素数以及第一公开数获得第一公钥包括:计算第一公开数的第一私钥次方模第一素数的结果,作为所述第一公钥。Further, said obtaining the first public key according to the first private key, the first prime number and the first public number includes: calculating the result of the first private key power modulo the first prime number of the first public number, as the first public key.
先计算第一公开数的第一私钥次方的值,再计算上述值模第一素数的结果,得到所述第一公钥。First calculate the value of the first public number raised to the power of the first private key, and then calculate the result of modulo the above value by the first prime number to obtain the first public key.
例如,根据公式y=ae(mod p),计算第一公钥y,其中,a表示第一公开数,e表示第一私钥,p表示第一素数,mod表示取模运算符。For example, the first public key y is calculated according to the formula y=a e (mod p), where a represents the first public number, e represents the first private key, p represents the first prime number, and mod represents a modulo operator.
S502、将所述第一公钥、所述第一公开数以及第一素数发送给第一终端。S502. Send the first public key, the first public number, and the first prime number to a first terminal.
具体地,所述第二终端在获得第一公钥之后,可以将所述第一公钥,第一公开数和第一素数发送给第一终端,以便第一终端在发送数据给第二终端之前利用第一公钥、第一公开数和第一素数进行数据解密。Specifically, after the second terminal obtains the first public key, it can send the first public key, the first public number and the first prime number to the first terminal, so that the first terminal can send data to the second terminal Previously, data decryption is performed using the first public key, the first public number and the first prime number.
下面银行内部数据传输的一个实施例,来说明本发明实施例提供的传输数据处理方法的具体实现过程。The following is an embodiment of the internal data transmission of the bank to illustrate the specific implementation process of the transmission data processing method provided by the embodiment of the present invention.
某个支行需要向总行传输数据,即支行服务器A向总行服务器B传输数据。在传输数据之前,支行服务器A与总行服务器B之间可以先进行身份验证,以保证通讯双方的身份是可信的。身份验证则采用动态口令技术,比如通过Kerberos计算机网络授权协议进行身份认证。支行服务器A与总行服务器B可以通过DH协议,完成对称加密密钥的交换。A certain branch needs to transmit data to the head office, that is, the branch server A transmits data to the head office server B. Before data transmission, identity verification can be performed between branch server A and head office server B to ensure that the identities of both communication parties are credible. Identity verification adopts dynamic password technology, such as through Kerberos computer network authorization protocol for identity verification. Branch server A and head office server B can complete the exchange of symmetric encryption keys through the DH protocol.
支行服务器A通过对称加密密钥key1对原始数据进行对称加密,获得待传输数据。总行服务器B根据公式y=ae(mod p),计算第一公钥y,其中,a表示第一公开数,e表示第一私钥,p表示第一素数,mod表示取模运算符。第一素数p大于预设值,并且p-1能够分解出一个大于预设值的素数。第一公开数a为模p的一个原根,1<e<p-1。总行服务器B将第一公钥y,第一公开数a和第一素数p发送给支行服务器A。其中,总行服务器B会将第一私钥e与第一公钥y对应存储,以便后续要使用第一私钥e时,可以根据第一公钥y查询获得第一私钥e。The branch server A uses the symmetric encryption key key1 to symmetric encrypt the original data to obtain the data to be transmitted. The head office server B calculates the first public key y according to the formula y=a e (mod p), where a represents the first public number, e represents the first private key, p represents the first prime number, and mod represents a modulo operator. The first prime number p is greater than a preset value, and p-1 can be decomposed into a prime number greater than the preset value. The first public number a is a primitive root modulo p, 1<e<p-1. The head office server B sends the first public key y, the first public number a and the first prime number p to the branch server A. Wherein, the head office server B will store the first private key e and the first public key y correspondingly, so that when the first private key e is to be used later, the first private key e can be obtained by querying the first public key y.
支行服务器A根据公式U=yk(mod p),计算第一中间数U,其中,y表示第一公钥,k表示第一随机整数,p表示第一素数,mod表示取模运算符。支行服务器A公式C1=ak(modp),计算第一密文C1,其中,a表示第一公开数,k表示第一随机整数,p表示第一素数,mod表示取模运算符。The branch server A calculates the first intermediate number U according to the formula U=y k (mod p), where y represents the first public key, k represents the first random integer, p represents the first prime number, and mod represents a modulo operator. Sub-branch server A calculates the first ciphertext C1 with the formula C1=a k (modp), where a represents the first public number, k represents the first random integer, p represents the first prime number, and mod represents the modulus operator.
支行服务器A根据公式C2=UMmodp,获得第二密文C2,其中,U表示第一中间数,M表示待传输数据,p表示第一素数,mod表示取模运算符。The branch server A obtains the second ciphertext C2 according to the formula C2=UMmodp, where U represents the first intermediate number, M represents the data to be transmitted, p represents the first prime number, and mod represents a modulo operator.
支行服务器A将第一密文C1和第二密文C2用逗号进行分割,获得第一传输密文C。然后将第一传输密文C和第一公钥y携带在第一传输数据中发送给总行服务器B。The branch server A divides the first ciphertext C1 and the second ciphertext C2 with a comma to obtain the first transmission ciphertext C. Then carry the first transmission ciphertext C and the first public key y in the first transmission data and send it to the head office server B.
总行服务器B接收上述第一传输数据,从第一传输数据中,获得第一传输密文C和第一公钥y。The head office server B receives the first transmission data, and obtains the first transmission ciphertext C and the first public key y from the first transmission data.
总行服务器B解析第一传输密文C,获得第一密文C1和第二密文C2。并根据第一公钥y查询获得第一私钥e。The head office server B parses the first transmission ciphertext C to obtain the first ciphertext C1 and the second ciphertext C2. And obtain the first private key e according to the query of the first public key y.
总行服务器B根据公式V=C1emodp,计算第二中间数V,其中,e表示第一私钥,C1表示第一密文,p表示第一素数,mod表示取模运算符。The head office server B calculates the second intermediate number V according to the formula V=C1 e modp, where e represents the first private key, C1 represents the first ciphertext, p represents the first prime number, and mod represents a modulo operator.
总行服务器B根据公式M=C2V-1modp,解密获得第二密文对应的原数据M,其中,V表示第二中间数,C2表示第二密文,V-1表示V的-1次方,p表示第一素数,mod表示取模运算符。The head office server B decrypts and obtains the original data M corresponding to the second ciphertext according to the formula M=C2V -1 modp, where V represents the second intermediate number, C2 represents the second ciphertext, and V -1 represents the -1 power of V , p represents the first prime number, and mod represents the modulo operator.
总行服务器B根据对称加密密钥key2对第一传输密文对应的原数据进行解密,获得原始数据。The head office server B decrypts the original data corresponding to the first transmission ciphertext according to the symmetric encryption key key2 to obtain the original data.
图6是本发明第六实施例提供的传输数据处理系统的结构示意图,如图6所示,本发明实施例提供的传输数据处理系统包括服务器601和多个数据终端602,其中:Fig. 6 is a schematic structural diagram of a transmission data processing system provided by the sixth embodiment of the present invention. As shown in Fig. 6, the transmission data processing system provided by the embodiment of the present invention includes a
服务器601与每个数据终端602通信连接。其中,数据终端602包括但不限于台式机、笔记本电脑、服务器等设备。The
当两个数据终端602需要进行数据传输时,并不直接进行数据传输,而是通过服务器601进行中转,对转发数据的加密处理过程只需要部署在服务器601上,无需在各个数据终端602上部署,提高了部署的效率。为便于后续说明,发送数据的数据终端,被称为第三终端,接收数据的数据终端被称为第四终端。When two
每个数据终端602预先生成自己的第二公钥,并发送给服务器601。服务器601将每个数据终端602的第二公钥与每个数据终端的终端标识对应存储,以便于在使用时,可以通过数据终端的终端标识查询获得对应的第二公钥。Each
下面以服务器作为执行主体为例,对本发明实施例提供的传输数据处理方法的具体实现过程进行说明。The specific implementation process of the transmission data processing method provided by the embodiment of the present invention will be described below by taking the server as an execution subject as an example.
图7是本发明第七实施例提供的传输数据处理方法的流程示意图,如图7所示,本发明实施例提供的传输数据处理方法包括:Fig. 7 is a schematic flowchart of a transmission data processing method provided by the seventh embodiment of the present invention. As shown in Fig. 7, the transmission data processing method provided by the embodiment of the present invention includes:
S701、接收第三终端发送的数据转发请求;其中,所述数据转发请求包括转发数据和第四终端标识,所述转发数据为所述第三终端加密后的数据;S701. Receive a data forwarding request sent by a third terminal; wherein, the data forwarding request includes forwarding data and a fourth terminal identifier, and the forwarding data is encrypted data by the third terminal;
具体地,当第三终端需要将数据发送给第四终端时,所述第三终端会对原始数据进行加密,然后将加密后的原始数据以及第三终端标识携带在数据转发请求中发送给服务器。所述服务器会接收所述数据转发请求,将第三终端加密后的原始数据,作为转发数据。其中,第四终端标识与第四终端唯一对应。Specifically, when the third terminal needs to send data to the fourth terminal, the third terminal will encrypt the original data, and then send the encrypted original data and the third terminal identifier in the data forwarding request to the server . The server will receive the data forwarding request, and use the encrypted original data of the third terminal as the forwarded data. Wherein, the fourth terminal identifier uniquely corresponds to the fourth terminal.
例如,所述第三终端可以采用对称加密算法对所述原始数据进行加密。For example, the third terminal may use a symmetric encryption algorithm to encrypt the original data.
S702、根据第二公钥、第二随机整数以及第二素数,获得第三中间数,并根据第二公开数、所述第二随机整数以及所述第二素数,获得第三密文;其中,所述第二公钥是根据第四终端标识获得的;所述第二公开数和所述第二素数是预先获得的;S702. Obtain a third intermediate number according to the second public key, a second random integer, and a second prime number, and obtain a third ciphertext according to the second public number, the second random integer, and the second prime number; wherein , the second public key is obtained according to the fourth terminal identifier; the second public number and the second prime number are obtained in advance;
具体地,所述服务器根据第四终端标识查询获得与所述第四终端对应的第二公钥,然后根据所述第二公钥、第二随机整数以及第二素数,可以获得第三中间数。所述服务器根据第二公开数、第二随机整数以及第二素数,可以获得第二密文。其中,所述第二随机整数为随机选取的整数,优先从大于1且小于第二素数减1的范围内选择。所述第二公钥和第二公开数是预先获得的。Specifically, the server obtains the second public key corresponding to the fourth terminal according to the fourth terminal identification query, and then obtains the third intermediate number according to the second public key, the second random integer and the second prime number . The server can obtain the second ciphertext according to the second public number, the second random integer and the second prime number. Wherein, the second random integer is a randomly selected integer, preferably selected from a range greater than 1 and less than the second
进一步地,所述根据第二公钥、第二随机整数以及第二素数,获得第三中间数包括:计算第二公钥的第二随机整数次方模第二素数的结果,作为所述第三中间数。Further, the obtaining the third intermediate number according to the second public key, the second random integer and the second prime number includes: calculating the result of modulo the second prime number of the second random integer power of the second public key, as the first Three middle numbers.
先计算第二公钥的第二随机整数次方的值,再计算上述值模第二素数的结果,得到所述第三中间数。First calculate the value of the second random integer power of the second public key, and then calculate the result of modulo the above value by the second prime number to obtain the third intermediate number.
例如,根据公式W=xi(mod q),计算第三中间数W,其中,x表示第二公钥,i表示第二随机整数,q表示第二素数,mod表示取模运算符。For example, the third intermediate number W is calculated according to the formula W= xi (mod q), where x represents the second public key, i represents the second random integer, q represents the second prime number, and mod represents the modulus operator.
进一步地,所述根据第二公开数、所述第二随机整数以及所述第二素数,获得第三密文包括:计算第二公开数的第二随机整数次方模第二素数的结果,作为所述第三密文。Further, the obtaining the third ciphertext according to the second public number, the second random integer and the second prime number includes: calculating the result of modulo the second prime number of the second random integer power of the second public number, as the third ciphertext.
先计算第二公开数的第二随机整数次方的值,再计算上述值模第二素数的结果,得到所述第三密文。First calculate the value of the second public number raised to the power of the second random integer, and then calculate the result of modulo the above value by the second prime number to obtain the third ciphertext.
例如,根据公式C3=bi(mod q),计算第三密文C3,其中,b表示第二公开数,i表示第二随机整数,q表示第二素数,mod表示取模运算符。For example, the third ciphertext C3 is calculated according to the formula C3=bi (mod q), where b represents the second public number, i represents the second random integer, q represents the second prime number, and mod represents the modulus operator.
S703、根据所述第三中间数和所述第二素数对所述转发数据进行加密,获得第四密文;S703. Encrypt the forwarded data according to the third intermediate number and the second prime number to obtain a fourth ciphertext;
具体地,所述服务器通过所述第三中间数和所述第二素数加密转发数据,可以获得第四密文。Specifically, the server may obtain a fourth ciphertext by encrypting and forwarding data with the third intermediate number and the second prime number.
进一步地,所述根据所述第三中间数和所述第二素数对所述转发数据进行加密,获得第四密文包括:计算第三中间数与转发数据的乘积模第二素数的结果,作为所述第四密文。Further, the encrypting the forwarded data according to the third intermediate number and the second prime number, and obtaining the fourth ciphertext includes: calculating the result of the product of the third intermediate number and the forwarded data modulo the second prime number, as the fourth ciphertext.
先计算第三中间数与转发数据的乘积,再计算上述乘积模第二素数的结果,得到所述第四密文。First calculate the product of the third intermediate number and the forwarded data, and then calculate the result of the above product modulo the second prime number to obtain the fourth ciphertext.
例如,根据公式C4=WNmodq,计算第四密文C4,其中,W表示第三中间数,N表示转发数据,q表示第二素数,mod表示取模运算符。For example, the fourth ciphertext C4 is calculated according to the formula C4=WNmodq, where W represents the third intermediate number, N represents forwarded data, q represents the second prime number, and mod represents a modulo operator.
S704、根据所述第三密文和所述第四密文,获得第二传输密文;S704. Obtain a second transmission ciphertext according to the third ciphertext and the fourth ciphertext;
具体地,所述服务器对所述第三密文和所述第四密文进行处理,可以获得第二传输密文。Specifically, the server processes the third ciphertext and the fourth ciphertext to obtain a second transmission ciphertext.
进一步地,所述根据所述第三密文和所述第四密文,获得第二传输密文包括:Further, the obtaining the second transmission ciphertext according to the third ciphertext and the fourth ciphertext includes:
将所述第三密文和所述第四密文以预设字符组合,获得所述第一传输密文。Combining the third ciphertext and the fourth ciphertext with preset characters to obtain the first transmission ciphertext.
例如,将第一密文和第二密文用逗号进行组合,获得第二传输密文S,C3表示第三密文,C4表示第四密文。For example, the first ciphertext and the second ciphertext are combined with a comma to obtain the second transmission ciphertext S, C3 represents the third ciphertext, and C4 represents the fourth ciphertext.
S705、发送第二传输数据至所述第四终端;其中,所述第二传输数据包括所述第二传输密文和所述第二公钥。S705. Send second transmission data to the fourth terminal; wherein the second transmission data includes the second transmission ciphertext and the second public key.
具体地,所述服务器将所述第二传输密文和所述第二公钥携带在第二传输数据中发送给所述第四终端。所述第四终端在接收到所述第二传输数据之后,会解密所述第二传输密文,获得转发数据。Specifically, the server sends the second transmission ciphertext and the second public key in second transmission data to the fourth terminal. After receiving the second transmission data, the fourth terminal decrypts the second transmission ciphertext to obtain forwarded data.
本发明实施例提供的传输数据处理方法,能够接收第三终端发送的数据转发请求,根据第二公钥、第二随机整数以及第二素数,获得第三中间数,并根据第二公开数、第二随机整数以及第二素数,获得第三密文,根据第三中间数和第二素数对转发数据进行加密,获得第四密文,根据第三密文和第四密文,获得第二传输密文,发送第二传输数据至第四终端,通过对转发数据进行再次加密,提高了数据传输的安全性。The transmission data processing method provided by the embodiment of the present invention can receive the data forwarding request sent by the third terminal, obtain the third intermediate number according to the second public key, the second random integer and the second prime number, and obtain the third intermediate number according to the second public number, The second random integer and the second prime number obtain the third ciphertext, encrypt the forwarded data according to the third intermediate number and the second prime number, obtain the fourth ciphertext, and obtain the second ciphertext according to the third ciphertext and the fourth ciphertext. The ciphertext is transmitted, the second transmission data is sent to the fourth terminal, and the security of data transmission is improved by re-encrypting the forwarded data.
图8是本发明第八实施例提供的传输数据处理方法的流程示意图,如图8所示,在上述各实施例的基础上,进一步地,在根据第二公钥、第二随机整数以及第二素数,获得第三中间数之前,还包括:Fig. 8 is a schematic flowchart of a transmission data processing method provided by the eighth embodiment of the present invention. As shown in Fig. 8, on the basis of the above-mentioned embodiments, further, according to the second public key, the second random integer and the first The second prime number, before obtaining the third intermediate number, also includes:
S801、接收所述第四终端发送的第二公钥,所述第二公钥是所述第四终端根据第二私钥、所述第二素数以及所述第二公开数获得的所述第二公开数为模第二素数的一个原根,所述第二私钥是随机选择的整数。S801. Receive a second public key sent by the fourth terminal, where the second public key is the first public key obtained by the fourth terminal according to the second private key, the second prime number, and the second public number The second public number is a primitive root modulo the second prime number, and the second private key is an integer selected at random.
具体地,所述第四终端可以根据第二私钥、所述第二素数以及所述第二公开数,获得第二公钥。所述第二私钥是随机选择的整数,优先从大于1且小于第二素数减1的范围内选择。所述第二素数是随机选择的素数,优选大于预设值且第二素数减1的值能够分解一个大于预设值的素数。第二公开数为模第二素数的一个原根。所述第四终端将所述第二公钥发送给所述服务器,所述服务器会接收所述第二公钥。所述第四终端还可以将生成第二公钥所使用的第二公开数和第二素数是公开发送给服务器。Specifically, the fourth terminal may obtain the second public key according to the second private key, the second prime number, and the second public number. The second private key is a randomly selected integer, preferably selected from a range greater than 1 and less than the second
进一步地,所述根据第二私钥、所述第二素数以及所述第二公开数,获得所述第二公钥包括:计算第二公开数的第二私钥次方模第二素数的结果,作为所述第二公钥。Further, according to the second private key, the second prime number and the second public number, obtaining the second public key includes: calculating the second private key power of the second public number modulo the second prime number The result, as the second public key.
先计算第二公开数的第二私钥次方的值,再计算上述值模第二素数的结果,得到所述第二公钥。First calculate the value of the second public number raised to the power of the second private key, and then calculate the result of modulo the above value by the second prime number to obtain the second public key.
例如,根据公式x=bd(mod q),计算第二公钥x,其中,b表示第二公开数,d表示第二私钥,q表示第二素数,mod表示取模运算符。For example, the second public key x is calculated according to the formula x=b d (mod q), where b represents the second public number, d represents the second private key, q represents the second prime number, and mod represents a modulo operator.
S802、将所述第四终端标识与所述第二公钥对应存储;其中,所述第四终端与所述第四终端标识唯一对应。S802. Store the fourth terminal identifier in association with the second public key; wherein, the fourth terminal uniquely corresponds to the fourth terminal identifier.
具体地,所述服务器接收到所述第四终端发送的第二公钥之后,会将所述第二公钥与所述第四终端标识对应存储,以便于后续需要使用所述第四终端标识对应的第二公钥时,可以通过所述第四终端标识查询获得。Specifically, after the server receives the second public key sent by the fourth terminal, it will store the second public key in correspondence with the fourth terminal ID, so that the fourth terminal ID can be used later. The corresponding second public key may be obtained through the fourth terminal identification query.
下面以第四终端作为执行主体为例,对本发明实施例提供的传输数据处理方法的具体实现过程进行说明。The following describes the specific implementation process of the method for processing transmission data provided in the embodiment of the present invention by taking the fourth terminal as an execution subject as an example.
图9是本发明第九实施例提供的传输数据处理方法的流程示意图,如图9所示,本发明实施例提供的传输数据处理方法,包括:Fig. 9 is a schematic flowchart of a transmission data processing method provided by the ninth embodiment of the present invention. As shown in Fig. 9, the transmission data processing method provided by the embodiment of the present invention includes:
S901、接收服务器发送的第二传输数据;其中,所述第二传输数据包括第二传输密文和第二公钥;S901. Receive second transmission data sent by the server; wherein the second transmission data includes a second transmission ciphertext and a second public key;
具体地,服务器向第四终端发送第二传输数据,所述第二传输数据包括第二传输密文和第二公钥。所述第四终端会接收所述第二传输数据,并从所述第二传输数据中获得所述第二传输密文和第二公钥。其中,所述服务器在经过步骤S701、步骤S702、步骤S703和步骤S704之后发送第二传输数据。Specifically, the server sends second transmission data to the fourth terminal, where the second transmission data includes a second transmission ciphertext and a second public key. The fourth terminal receives the second transmission data, and obtains the second transmission ciphertext and the second public key from the second transmission data. Wherein, the server sends the second transmission data after step S701, step S702, step S703 and step S704.
S902、解析所述第二传输密文获得第三密文和第四密文;S902. Analyze the second transmission ciphertext to obtain a third ciphertext and a fourth ciphertext;
具体地,所述第二终端解析所述第二传输密文,可以获得第三密文和第四密文。其中,对所述第一传输密文的解析方式是预设的。Specifically, the second terminal parses the second transmission ciphertext to obtain a third ciphertext and a fourth ciphertext. Wherein, the parsing method for the first transmission ciphertext is preset.
例如,第二传输密文S表示为(C3,C4),所述第四终端将括号中逗号之前的数据作为第三密文C3,将括号中逗号之后的数据作为第二密文C4。For example, the second transmission ciphertext S is expressed as (C3, C4), the fourth terminal uses the data before the comma in the brackets as the third ciphertext C3, and uses the data after the comma in the brackets as the second ciphertext C4.
S903、根据所述第三密文、第二私钥以及第二素数,获得第四中间数;其中,所述第二私钥是根据所述第二公钥获得的;S903. Obtain a fourth intermediate number according to the third ciphertext, the second private key, and a second prime number; wherein, the second private key is obtained according to the second public key;
具体地,所述第四终端根据所述第二公钥查询获得与所述第二公钥对应的第二私钥,然后根据所述第三密文、第二私钥以及第二素数,可以获得第四中间数。其中,所述第一公钥和所述第一私钥是唯一对应的。所述第二素数和所述第二公开数是预先获得的。Specifically, the fourth terminal obtains the second private key corresponding to the second public key according to the second public key query, and then according to the third ciphertext, the second private key and the second prime number, can Get the fourth median number. Wherein, the first public key and the first private key are uniquely corresponding. The second prime number and the second public number are obtained in advance.
进一步地,所述根据所述第三密文、第二私钥以及第二素数,获得第四中间数包括:计算第三密文的第二私钥次方模第二素数的结果,作为所述第四中间数。Further, the obtaining the fourth intermediate number according to the third ciphertext, the second private key and the second prime number includes: calculating the result of modulo the second prime number of the second private key of the third ciphertext, as the result of the second prime number State the fourth median number.
先计算第三密文的第二私钥次方的值,再计算上述值模第二素数的结果,得到所述第四中间数。First calculate the value of the second private key power of the third ciphertext, and then calculate the result of modulo the second prime number of the above value to obtain the fourth intermediate number.
例如,根据公式Z=C3dmodq,计算第四中间数Z,其中,d表示第二私钥,C3表示第三密文,C3d表示C3的d次方,q表示第二素数,mod表示取模运算符。For example, according to the formula Z=C3 d modq, calculate the fourth intermediate number Z, where d represents the second private key, C3 represents the third ciphertext, C3 d represents the d power of C3, q represents the second prime number, and mod represents Modulo operator.
S904、根据所述第四中间数和所述第二素数解密所述第四密文,获得所述第四密文对应的原数据;S904. Decrypt the fourth ciphertext according to the fourth intermediate number and the second prime number, and obtain original data corresponding to the fourth ciphertext;
具体地,所述第四终端通过所述第四中间数和所述第二素数对所述第四密文进行解密,可以获得所述第四密文对应的原数据,所述第四密文对应的原数据即所述转发数据。Specifically, the fourth terminal decrypts the fourth ciphertext by using the fourth intermediate number and the second prime number to obtain original data corresponding to the fourth ciphertext, and the fourth ciphertext The corresponding original data is the forwarded data.
例如,根据公式N=C4Z-1modq,解密获得第四密文对应的原数据N,其中,Z表示第四中间数,C4表示第四密文,q表示第二素数,mod表示取模运算符。For example, according to the formula N=C4Z -1 modq, decrypt to obtain the original data N corresponding to the fourth ciphertext, where Z represents the fourth intermediate number, C4 represents the fourth ciphertext, q represents the second prime number, and mod represents the modulo operation symbol.
S905、对所述第四密文对应的原数据进行解密,获得原始数据。S905. Decrypt the original data corresponding to the fourth ciphertext to obtain the original data.
具体地,所述第三终端对原始数据进行加密,得到加密后的原始数据发送给服务器。服务器将接收的解密后的原始数据作为转发数据。所述第四终端在解密获得所述第四密文对应的原数据之后,会进行对所述第四密文对应的原数据进行解密,获得原始数据。其中,所述第四终端对所述第四密文对应的原数据进行解密的过程与第三终端对原始数据进行加密的过程对应。Specifically, the third terminal encrypts the original data, and sends the encrypted original data to the server. The server takes the received decrypted original data as forwarding data. After the fourth terminal decrypts and obtains the original data corresponding to the fourth ciphertext, it decrypts the original data corresponding to the fourth ciphertext to obtain the original data. Wherein, the process of the fourth terminal decrypting the original data corresponding to the fourth ciphertext corresponds to the process of the third terminal encrypting the original data.
例如,所述第三终端采用对称加密算法对原始数据进行加密,那么所述第四终端在解密获得所述第四密文对应的原数据之后,会采用对称加密算法对所述第四密文对应的原数据进行解密,获得原始数据。其中,通过对称加密算法加解密的具体过程为现有技术,此处不进行赘述。For example, if the third terminal uses a symmetric encryption algorithm to encrypt the original data, then the fourth terminal will use a symmetric encryption algorithm to encrypt the fourth ciphertext after decrypting the original data corresponding to the fourth ciphertext. The corresponding original data is decrypted to obtain the original data. Wherein, the specific process of encrypting and decrypting through the symmetric encryption algorithm is the prior art, and will not be repeated here.
本发明实施例提供的传输数据处理方法,接收服务器发送的第二传输数据,解析所述第二传输密文获得第三密文和第四密文,根据所述第三密文、第二私钥以及第二素数,获得第四中间数,根据第四中间数和第二素数解密第四密文,获得第四密文对应的原数据,对所述第四密文对应的原数据进行解密,获得原始数据,能够对第二传输数据进行解密,获得第四密文对应的原数据,并继续解密获得原始数据,提高数据使用的安全性。In the transmission data processing method provided by the embodiment of the present invention, the second transmission data sent by the server is received, the second transmission ciphertext is analyzed to obtain the third ciphertext and the fourth ciphertext, and according to the third ciphertext, the second private key and the second prime number, obtain the fourth intermediate number, decrypt the fourth ciphertext according to the fourth intermediate number and the second prime number, obtain the original data corresponding to the fourth ciphertext, and decrypt the original data corresponding to the fourth ciphertext , the original data can be obtained, the second transmission data can be decrypted, the original data corresponding to the fourth ciphertext can be obtained, and the original data can be obtained by further decryption, so as to improve the security of data use.
在上述各实施例的基础上,进一步地,本发明实施例提供的传输数据处理方法还包括:On the basis of the foregoing embodiments, further, the transmission data processing method provided in the embodiment of the present invention further includes:
根据所述第二私钥、第二素数以及第二公开数,获得第二公钥;其中,所述第二素数是随机选择的,所述第二公开数为模第二素数的一个原根,所述第二私钥是随机选择的整数;According to the second private key, the second prime number and the second public number, obtain the second public key; wherein, the second prime number is randomly selected, and the second public number is a primitive root modulo the second prime number , the second private key is a randomly selected integer;
具体地,本步骤的具体实现过程与步骤S501的具体实现过程类似,此处不进行赘述。Specifically, the specific implementation process of this step is similar to the specific implementation process of step S501, and will not be repeated here.
进一步地,所述第二私钥、第二素数以及第二公开数,获得第二公钥包括:计算第二公开数的第二私钥次方模第二素数的结果,作为所述第一公钥。Further, for the second private key, the second prime number and the second public number, obtaining the second public key includes: calculating the result of the second private key power modulo the second prime number of the second public number, as the first public key.
将所述第二公钥、所述第二公开数以及第二素数发送给所述服务器。Send the second public key, the second public number and the second prime number to the server.
具体地,本步骤的具体实现过程与步骤S502的具体实现过程类似,此处不进行赘述。Specifically, the specific implementation process of this step is similar to the specific implementation process of step S502, and will not be repeated here.
对于银行而言,可以建立云服务器,当各个支行之间或者支行与营业网点支行之间有数据要传输时,可以通过云服务对数据进行中转,云服务器会执行步骤S701、步骤S702、步骤S703和步骤S704,对转发数据再次进行加密,提高数据传输的安全性。此外,在云服务器部署相关加密算法,降低了部署的成本。For banks, cloud servers can be established. When there is data to be transmitted between branches or between branches and branches of business outlets, the data can be transferred through cloud services, and the cloud server will perform steps S701, S702, and S703. And step S704, encrypting the forwarded data again to improve the security of data transmission. In addition, deploying related encryption algorithms on cloud servers reduces deployment costs.
图10是本发明第十实施例提供的传输数据处理装置的结构示意图,如图10所示,本发明实施例提供的传输数据处理装置包括第一获得模块1001、第二获得模块1002、第三获得模块1003和第一发送模块1004,其中:Fig. 10 is a schematic structural diagram of the transmission data processing device provided by the tenth embodiment of the present invention. As shown in Fig. 10, the transmission data processing device provided by the embodiment of the present invention includes a first obtaining
第一获得模块1001用于根据第一公钥、第一随机整数以及第一素数,获得第一中间数,并根据第一公开数、所述第一随机整数以及所述第一素数,获得第一密文;其中,所述第一公钥是预先从第二终端接收的;所述第一素数以及所述第一公开数是预先获得的;第二获得模块1002用于根据所述第一中间数和所述第一素数加密待传输数据,获得第二密文;第三获得模块1003用于根据所述第一密文和所述第二密文,获得第一传输密文;第一发送模块1004用于发送第一传输数据至所述第二终端;其中,所述第一传输数据包括所述第一传输密文和所述第一公钥。The first obtaining
具体地,第一获得模块1001根据第一公钥、第一随机整数以及第一素数,可以获得第一中间数。所述第一终端根据所述第一私钥、所述第一随机整数以及所述第一素数,可以获得第一密文。其中,所述第一随机整数为随机选取的整数,优先从大于1且小于第一素数减1的范围内选择。所述第一公钥是预先从第二终端接收的;所述第一素数以及所述第一公开数是预先获得的。Specifically, the first obtaining
第二获得模块1002通过所述第一中间数和所述第一素数加密待传输数据,可以获得第二密文。The second obtaining
第三获得模块1003对所述第一密文和所述第二密文进行处理,可以获得第一传输密文。The third obtaining
第一发送模块1004将所述第一传输密文和所述第一公钥携带在第一传输数据中发送给所述第二终端。所述第二终端在接收到所述第一传输数据之后,会解密所述第一传输密文,获得待传输数据。The
本发明实施例提供的传输数据处理装置,能够根据第一公钥、第一随机整数以及第一素数,获得第一中间数,并根据第一公开数、第一随机整数以及第一素数,获得第一密文,根据第一中间数和第一素数加密待传输数据,获得第二密文,根据第一密文和第二密文,获得第一传输密文,发送携带第一传输密文和第一公钥的第一传输数据至第二终端,通过对待传输数据进行加密,提高了数据传输的安全性。The transmission data processing device provided by the embodiment of the present invention can obtain the first intermediate number according to the first public key, the first random integer and the first prime number, and obtain the first intermediate number according to the first public number, the first random integer and the first prime number The first ciphertext, encrypt the data to be transmitted according to the first intermediate number and the first prime number, obtain the second ciphertext, obtain the first transmission ciphertext according to the first ciphertext and the second ciphertext, and send the first transmission ciphertext The first transmission data and the first public key are sent to the second terminal, and the security of data transmission is improved by encrypting the data to be transmitted.
在上述各实施例的基础上,进一步地,所述待传输数据是经过对称加密后的数据。On the basis of the above embodiments, further, the data to be transmitted is symmetrically encrypted data.
在上述各实施例的基础上,进一步地,所述第一传输数据还包括所述待传输数据的摘要值。On the basis of the foregoing embodiments, further, the first transmission data further includes a digest value of the data to be transmitted.
图11是本发明第十一实施例提供的传输数据处理装置的结构示意图,如图11所示,本发明实施例提供的传输数据处理装置包括第一接收模块1101、第一解析模块1102、第五获得模块1103和第一解密模块1104,其中:FIG. 11 is a schematic structural diagram of a transmission data processing device provided by an eleventh embodiment of the present invention. As shown in FIG. Fifth, obtain
第一接收模块901用于接收第一终端发送的第一传输数据;其中,所述第一传输数据包括第一传输密文和第一公钥;第一解析模块1102用于从所述第一传输密文解析获得第一密文和第二密文;第五获得模块1103用于根据所述第一密文、第一私钥以及第一素数,获得第二中间数;其中,所述第一私钥是根据所述第一公钥获得的;第一解密模块1104用于根据所述第二中间数和所述第一素数解密所述第二密文,获得所述第二密文对应的原数据。The
具体地,第一终端向第一接收模块1101发送第一传输数据,所述第一传输数据包括第一传输密文和第一公钥。第一接收模块1101会接收所述第一传输数据,并从所述第一传输数据中获得所述第一传输密文和第一公钥。Specifically, the first terminal sends first transmission data to the
第一解析模块1102解析所述第一传输密文,可以获得第一密文和第二密文。其中,对所述第一传输密文的解析方式是预设的。The
第五获得模块1103根据所述第一公钥查询获得与所述第一公钥对应的第一私钥,然后根据所述第一密文、第一私钥以及第一素数,可以获得第二中间数。其中,所述第一公钥和所述第一私钥是唯一对应的。所述第一素数和所述第一公开数是预先获得的。The fifth obtaining
第一解密模块1104通过所述第二中间数和所述第一素数对所述第二密文进行解密,可以获得所述第二密文对应的原数据,所述第一二密文对应的原数据即所述待传输数据。The
本发明实施例提供的传输数据处理装置,接收第一终端发送的第一传输数据,从第一传输密文解析获得第一密文和第二密文,根据第一密文、第一私钥以及第一素数,获得第二中间数,根据第二中间数和所述第一素数解密第二密文,获得第二密文对应的原数据,能够对第一传输数据进行解密,获得第二密文对应的原数据,提高数据使用的安全性。The transmission data processing device provided by the embodiment of the present invention receives the first transmission data sent by the first terminal, analyzes and obtains the first ciphertext and the second ciphertext from the first transmission ciphertext, and obtains the first ciphertext and the second ciphertext according to the first ciphertext and the first private key. and the first prime number, obtain the second intermediate number, decrypt the second ciphertext according to the second intermediate number and the first prime number, obtain the original data corresponding to the second ciphertext, and decrypt the first transmission data to obtain the second ciphertext The original data corresponding to the ciphertext improves the security of data usage.
在上述各实施例的基础上,进一步地,所述第一传输密文对应的原数据为经过对称加密后的数据;相应地,第一解密模块1104还用于:On the basis of the above embodiments, further, the original data corresponding to the first transmission ciphertext is symmetrically encrypted data; correspondingly, the
通过对称加密密钥解密所述第一传输密文对应的原数据,获得原始数据;其中,所述对称加密密钥是预先获得的。The original data corresponding to the first transmission ciphertext is decrypted by using a symmetric encryption key to obtain the original data; wherein, the symmetric encryption key is obtained in advance.
图12是本发明第十二实施例提供的传输数据处理装置的结构示意图,如图12所示,在上述各实施例的基础上,进一步地,所述第一传输数据还包括摘要值;相应地,本发明实施例提供的传输数据处理装置还包括计算模块1105和判断模块1106,其中:Fig. 12 is a schematic structural diagram of a transmission data processing device provided by the twelfth embodiment of the present invention. As shown in Fig. 12, on the basis of the above-mentioned embodiments, further, the first transmission data further includes a digest value; correspondingly Specifically, the transmission data processing device provided in the embodiment of the present invention further includes a
计算模块1105用于对所述第一传输密文对应的原数据进行摘要值计算,获得待验证摘要值;判断模块1106用于在判断获知所述待验证摘要值与所述摘要值相同之后,确定所述第一传输密文对应的原数据完整。The
图13是本发明第十三实施例提供的传输数据处理装置的结构示意图,如图13所示,在上述各实施例的基础上,进一步地,本发明实施例提供的传输数据处理装置还包括第十一获得模块1107和第三发送模块1108,其中:Fig. 13 is a schematic structural diagram of the transmission data processing device provided by the thirteenth embodiment of the present invention. As shown in Fig. 13, on the basis of the above-mentioned embodiments, further, the transmission data processing device provided by the embodiment of the present invention further includes The eleventh obtaining
第十一获得模块1107用于根据所述第一私钥、第一素数以及第一公开数,获得第一公钥;其中,所述第一素数是随机选择的,所述第一公开数为模第一素数的一个原根,所述第一私钥是随机选择的整数;第三发送模块1108用于将所述第一公钥、所述第一公开数以及第一素数发送给第一终端。The eleventh obtaining
图14是本发明第十四实施例提供的传输数据处理装置的结构示意图,如图14所示,本发明实施例提供的传输数据处理装置包括第二接收模块1401、第六获得模块1402、第七获得模块1403、第八获得模块1404和第二发送模块1405,其中:Fig. 14 is a schematic structural diagram of a transmission data processing device provided in a fourteenth embodiment of the present invention. As shown in Fig. 14 , the transmission data processing device provided in this embodiment of the present invention includes a
第二接收模块1401用于接收第三终端发送的数据转发请求;其中,所述数据转发请求包括转发数据和第四终端标识,所述转发数据为所述第三终端加密后的数据;第六获得模块1402用于根据第二公钥、第二随机整数以及第二素数,获得第三中间数,并根据第二公开数、所述第二随机整数以及所述第二素数,获得第三密文;其中,所述第二公钥是根据第四终端标识获得的;所述第二公开数和所述第二素数是预先获得的;第七获得模块1403用于根据所述第三中间数和所述第二素数对所述转发数据进行加密,获得第四密文;第八获得模块1404用于根据所述第三密文和所述第四密文,获得第二传输密文;第二发送模块1405用于发送第二传输数据至所述第四终端;其中,所述第二传输数据包括所述第二传输密文和所述第二公钥。The
具体地,当第三终端需要将数据发送给第四终端时,所述第三终端会对原始数据进行加密,然后将加密后的原始数据以及第三终端标识携带在数据转发请求中发送给第二接收模块1401。第二接收模块1401会接收数据转发请求,将所述第三终端加密后的原始数据,作为转发数据。其中,第四终端标识与第四终端唯一对应。Specifically, when the third terminal needs to send data to the fourth terminal, the third terminal will encrypt the original data, and then send the encrypted original data and the third terminal identifier in the data forwarding request to the fourth terminal. Two
第六获得模块1402根据第四终端标识查询获得与所述第四终端对应的第二公钥,然后根据所述第二公钥第二随机整数以及第二素数,可以获得第三中间数。第七获得模块1102根据第二公开数、第二随机整数以及第二素数,可以获得第二密文。其中,所述第二随机整数为随机选取的整数,优先从大于1且小于第二素数减1的范围内选择。所述第二公钥和第二公开数是预先获得的。The sixth obtaining
第七获得模块1403通过所述第三中间数和所述第二素数加密转发数据,可以获得第四密文。The seventh obtaining
第八获得模块1404对所述第三密文和所述第四密文进行处理,可以获得第二传输密文。The eighth obtaining
第二发送模块1405将所述第二传输密文和所述第二公钥携带在第二传输数据中发送给所述第四终端。所述第四终端在接收到所述第二传输数据之后,会解密所述第二传输密文,获得转发数据。The
本发明实施例提供的传输数据处理装置,能够接收第三终端发送的数据转发请求,根据第二公钥、第二随机整数以及第二素数,获得第三中间数,并根据第二公开数、第二随机整数以及第二素数,获得第三密文,根据第三中间数和第二素数对转发数据进行加密,获得第四密文,根据第三密文和第四密文,获得第二传输密文,发送第二传输数据至第四终端,通过对转发数据进行再次加密,提高了数据传输的安全性。The transmission data processing device provided by the embodiment of the present invention can receive the data forwarding request sent by the third terminal, obtain the third intermediate number according to the second public key, the second random integer and the second prime number, and obtain the third intermediate number according to the second public number, The second random integer and the second prime number obtain the third ciphertext, encrypt the forwarded data according to the third intermediate number and the second prime number, obtain the fourth ciphertext, and obtain the second ciphertext according to the third ciphertext and the fourth ciphertext. The ciphertext is transmitted, the second transmission data is sent to the fourth terminal, and the security of data transmission is improved by re-encrypting the forwarded data.
图15是本发明第十五实施例提供的传输数据处理装置的结构示意图,如图15所示,在上述各实施例的基础上,进一步地,本发明实施例提供的传输数据处理装置还包括第四接收模块1406和存储模块1407,其中:Fig. 15 is a schematic structural diagram of the transmission data processing device provided by the fifteenth embodiment of the present invention. As shown in Fig. 15, on the basis of the above-mentioned embodiments, further, the transmission data processing device provided by the embodiment of the present invention further includes The
第四接收模块1406用于接收所述第四终端发送的第二公钥,所述第二公钥是所述第四终端根据第二私钥、所述第二素数以及所述第二公开数获得的,所述第二公开数为模第二素数的一个原根,所述第二私钥是随机选择的整数;The
存储模块1407用于将所述第四终端标识与所述第二公钥对应存储;其中,所述第四终端与所述第四终端标识唯一对应。The
图16是本发明第十六实施例提供的传输数据处理装置的结构示意图,如图16所示,本发明实施例提供的传输数据处理装置包括第三接收模块1601、第二解析模块1602、第九获得模块1603、第十获得模块1604和第二解密模块1605,其中:Fig. 16 is a schematic structural diagram of a transmission data processing device provided by a sixteenth embodiment of the present invention. As shown in Fig. The ninth obtaining
第三接收模块1601用于接收服务器发送的第二传输数据;其中,所述第二传输数据包括第二传输密文和第二公钥;第二解析模块1602用于解析所述第二传输密文获得第三密文和第四密文;第九获得模块1603用于根据所述第三密文、第二私钥以及第二素数,获得第四中间数;其中,所述第二私钥是根据所述第二公钥获得的;第十获得模块1604用于根据所述第四中间数和所述第二素数解密所述第四密文,获得所述第四密文对应的原数据;第二解密模块1605用于对所述第四密文对应的原数据进行解密,获得原始数据。具体地,服务器向第三接收模块1601发送第二传输数据,所述第二传输数据包括第二传输密文和第二公钥。第三接收模块1601会接收所述第二传输数据,并从所述第二传输数据中获得所述第二传输密文和第二公钥。The
第二解析模块1602解析所述第二传输密文,可以获得第三密文和第四密文。其中,对所述第一传输密文的解析方式是预设的。The
第九获得模块1603根据所述第二公钥查询获得与所述第二公钥对应的第二私钥,然后根据所述第三密文、第二私钥以及第二素数,可以获得第四中间数。其中,所述第一公钥和所述第一私钥是唯一对应的。所述第二素数和所述第二公开数是预先获得的。The ninth obtaining
第十获得模块1604通过所述第四中间数和所述第二素数对所述第四密文进行解密,可以获得所述第四密文对应的原数据,所述第四密文对应的原数据即所述转发数据。The tenth obtaining
第二解密模块1605对原始数据进行加密,得到加密后的原始数据发送给服务器。服务器将接收的解密后的原始数据作为转发数据。第二解密模块1605在解密获得所述第四密文对应的原数据之后,会进行对所述第四密文对应的原数据进行解密,获得原始数据。其中,第二解密模块1605对所述第四密文对应的原数据进行解密的过程与第三终端对原始数据进行加密的过程对应。The
本发明实施例提供的传输数据处理装置,接收服务器发送的第二传输数据,解析所述第二传输密文获得第三密文和第四密文,根据所述第三密文、第二私钥以及第二素数,获得第四中间数,根据第四中间数和第二素数解密第四密文,获得第四密文对应的原数据,对所述第四密文对应的原数据进行解密,获得原始数据,能够对第二传输数据进行解密,获得第四密文对应的原数据,并继续解密获得原始数据,提高数据使用的安全性。The transmission data processing device provided by the embodiment of the present invention receives the second transmission data sent by the server, analyzes the second transmission ciphertext to obtain the third ciphertext and the fourth ciphertext, and according to the third ciphertext, the second private key and the second prime number, obtain the fourth intermediate number, decrypt the fourth ciphertext according to the fourth intermediate number and the second prime number, obtain the original data corresponding to the fourth ciphertext, and decrypt the original data corresponding to the fourth ciphertext , the original data can be obtained, the second transmission data can be decrypted, the original data corresponding to the fourth ciphertext can be obtained, and the original data can be obtained by further decryption, so as to improve the security of data use.
图17是本发明第十七实施例提供的传输数据处理装置的结构示意图,如图17所示,在上述各实施例的基础上,进一步地,本发明实施例提供的传输数据处理装置还包括第十二获得模块1606和第四发送模块1607,其中:Fig. 17 is a schematic structural diagram of the transmission data processing device provided by the seventeenth embodiment of the present invention. As shown in Fig. 17, on the basis of the above-mentioned embodiments, further, the transmission data processing device provided by the embodiment of the present invention further includes The twelfth obtaining
第十二获得模块1606用于根据所述第二私钥、第二素数以及第二公开数,获得第二公钥;其中,所述第二素数是随机选择的,所述第二公开数为模第二素数的一个原根,所述第二私钥是随机选择的整数;第四发送模块1607用于将所述第二公钥、所述第二公开数以及第二素数发送给所述服务器。The twelfth obtaining
本发明实施例提供的装置的实施例具体可以用于执行上述对应方法实施例的处理流程,其功能在此不再赘述,可以参照上述方法实施例的详细描述。The embodiment of the device provided by the embodiment of the present invention can be specifically used to execute the processing flow of the above corresponding method embodiment, and its function will not be described in detail here, and the detailed description of the above method embodiment can be referred to.
需要说明的是,本发明实施例提供的传输数据处理方法及装置可用于金融领域,也可用于除金融领域之外的任意技术领域,本发明实施例对传输数据处理方法及装置的应用领域不做限定。It should be noted that the transmission data processing method and device provided by the embodiment of the present invention can be used in the financial field, and can also be used in any technical field except the financial field. The embodiment of the present invention does not apply to the application field of the transmission data processing method and device. Do limited.
图18是本发明第十八实施例提供的电子设备的实体结构示意图,如图18所示,该电子设备可以包括:处理器(processor)1801、通信接口(Communications Interface)1802、存储器(memory)1803和通信总线1804,其中,处理器1801,通信接口1802,存储器1803通过通信总线1804完成相互间的通信。处理器1801可以调用存储器1803中的逻辑指令,以执行上述任一实施例所述的方法。FIG. 18 is a schematic diagram of the physical structure of an electronic device provided in an eighteenth embodiment of the present invention. As shown in FIG. 18, the electronic device may include: a processor (processor) 1801, a communication interface (Communications Interface) 1802, and a
此外,上述的存储器1803中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the
本实施例公开一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法。This embodiment discloses a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by the computer, the computer can execute the above-mentioned The method provided by each method embodiment.
本实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储计算机程序,所述计算机程序使所述计算机执行上述各方法实施例所提供的方法。This embodiment provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program causes the computer to execute the methods provided in the foregoing method embodiments.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在本说明书的描述中,参考术语“一个实施例”、“一个具体实施例”、“一些实施例”、“例如”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "examples", "specific examples", or "some examples" etc. mean It means that a specific feature, structure, material or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211064548.3A CN115442127A (en) | 2022-08-31 | 2022-08-31 | Transmission data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211064548.3A CN115442127A (en) | 2022-08-31 | 2022-08-31 | Transmission data processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115442127A true CN115442127A (en) | 2022-12-06 |
Family
ID=84245300
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211064548.3A Pending CN115442127A (en) | 2022-08-31 | 2022-08-31 | Transmission data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115442127A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104168266A (en) * | 2014-07-21 | 2014-11-26 | 苏州大学 | Encryption method for preventing continuous leakage attacks |
CN111585743A (en) * | 2020-04-28 | 2020-08-25 | 西安电子科技大学 | A Many-to-One Homomorphic Encryption Public Key Compression Method on Integers |
US20220085999A1 (en) * | 2020-09-11 | 2022-03-17 | Cryptography Research, Inc. | System and method to optimize decryption operations in cryptographic applications |
CN114513306A (en) * | 2022-03-28 | 2022-05-17 | 北京石油化工学院 | Data encryption transmission method and system |
CN114726644A (en) * | 2022-04-24 | 2022-07-08 | 平安科技(深圳)有限公司 | Data transmission method, device and equipment based on secret key encryption and storage medium |
-
2022
- 2022-08-31 CN CN202211064548.3A patent/CN115442127A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104168266A (en) * | 2014-07-21 | 2014-11-26 | 苏州大学 | Encryption method for preventing continuous leakage attacks |
CN111585743A (en) * | 2020-04-28 | 2020-08-25 | 西安电子科技大学 | A Many-to-One Homomorphic Encryption Public Key Compression Method on Integers |
US20220085999A1 (en) * | 2020-09-11 | 2022-03-17 | Cryptography Research, Inc. | System and method to optimize decryption operations in cryptographic applications |
CN114513306A (en) * | 2022-03-28 | 2022-05-17 | 北京石油化工学院 | Data encryption transmission method and system |
CN114726644A (en) * | 2022-04-24 | 2022-07-08 | 平安科技(深圳)有限公司 | Data transmission method, device and equipment based on secret key encryption and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111740828B (en) | Key generation method, device and equipment and encryption and decryption method | |
TWI748853B (en) | Secure multiparty loss resistant storage and transfer of cryptographic keys for blockchain based systems in conjunction with a wallet management system | |
CN106656503B (en) | Method for storing cipher key, data encryption/decryption method, electric endorsement method and its device | |
US20170244687A1 (en) | Techniques for confidential delivery of random data over a network | |
CN108347419A (en) | Data transmission method and device | |
CN106878016A (en) | Data is activation, method of reseptance and device | |
CN109800588B (en) | Dynamic bar code encryption method and device and dynamic bar code decryption method and device | |
CN113806772A (en) | Information encryption transmission method and device based on block chain | |
CN110535626B (en) | Secret communication method and system for identity-based quantum communication service station | |
CN112351037B (en) | Information processing method and device for secure communication | |
CN103414559A (en) | Identity authentication method based on IBE-like system in cloud computing environment | |
CN106549963A (en) | Safe storage system based on HDFS | |
CN113726725A (en) | Data encryption and decryption method and device, electronic equipment and storage medium | |
CN115225672A (en) | End-to-end data transmission method, device and medium | |
CN117155564A (en) | Bidirectional encryption authentication system and method | |
CN113972985A (en) | A private cloud encryption storage method based on cloud encryption machine key management | |
GB2488753A (en) | Encrypted communication | |
CN118540163B (en) | Anti-quantum security enhancement method for national secret SSL VPN protocol | |
CN118555133B (en) | Quantum-resistant security enhancement method of transport layer security protocol | |
CN118018187B (en) | Agent re-encryption method based on SM9 cooperative algorithm | |
CN116599772A (en) | Data processing method and related equipment | |
CN117353899A (en) | Hybrid encryption method, device and storage medium | |
WO2024260532A1 (en) | Apparatus and method for remote attestation using symmetric keys | |
CN115834038A (en) | Encryption method and device based on national commercial cryptographic algorithm | |
CN115442127A (en) | Transmission data processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |