CN109639702A - A kind of data communications method, system and electronic equipment and storage medium - Google Patents

A kind of data communications method, system and electronic equipment and storage medium Download PDF

Info

Publication number
CN109639702A
CN109639702A CN201811593598.4A CN201811593598A CN109639702A CN 109639702 A CN109639702 A CN 109639702A CN 201811593598 A CN201811593598 A CN 201811593598A CN 109639702 A CN109639702 A CN 109639702A
Authority
CN
China
Prior art keywords
key
terminal
aes
electronic equipment
rsa
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
Application number
CN201811593598.4A
Other languages
Chinese (zh)
Inventor
岳公和
王永胜
张士林
臧爱伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201811593598.4A priority Critical patent/CN109639702A/en
Publication of CN109639702A publication Critical patent/CN109639702A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network 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/0435Network 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 symmetric encryption, i.e. same key used for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0631Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0825Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates

Abstract

This application discloses a kind of data communications method, system and a kind of electronic equipment and computer readable storage mediums, this method comprises: creation RSA public key and RSA private key, the RSA public key is disclosed, and store the RSA private key using the first AES key;Obtain the encryption key that the second terminal is sent;Wherein, the encryption key second terminal encrypts to obtain using the RSA public key to the second AES key;The encryption key is decrypted using the RSA private key to obtain second AES key, so that the first terminal and the second terminal carry out coded communication using second AES key;Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specially another in the electronic equipment and the mobile terminal.Data communications method provided by the present application improves the safety that data are transmitted between electronic equipment and mobile terminal.

Description

A kind of data communications method, system and electronic equipment and storage medium
Technical field
This application involves field of computer technology, more specifically to a kind of data communications method, system and a kind of electricity Sub- equipment and a kind of computer readable storage medium.
Background technique
In the information age, data transmission is omnipresent.How transmission for personal information guarantees personal information transmission It is perfectly safe, is directly related to the personal security of the lives and property.It needs to carry out personal information between electronic equipment and mobile terminal The Cellphone Accessories such as data interaction, such as bluetooth headset need to carry out the interactions of data with mobile phone.In the prior art, electronics is set The standby data transmission information secret grade between mobile terminal is low, is easy to be cracked, there are security breaches.
Therefore, how to improve the safety that data are transmitted between electronic equipment and mobile terminal is that those skilled in the art need Technical problems to be solved.
Summary of the invention
The application be designed to provide a kind of data communications method, system and a kind of electronic equipment and a kind of computer can Storage medium is read, the safety that data are transmitted between electronic equipment and mobile terminal is improved.
To achieve the above object, this application provides a kind of data communications methods, are applied to first terminal, described first eventually End is connected with second terminal, which comprises
RSA public key and RSA private key are created, the RSA public key is disclosed, and stores the RSA private using the first AES key Key;
Obtain the encryption key that the second terminal is sent;Wherein, the encryption key utilizes institute for the second terminal State what RSA public key encrypted the second AES key;
The encryption key is decrypted using the RSA private key to obtain second AES key, so as to described first Terminal and the second terminal utilize second AES key progress coded communication;
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specific For another in the electronic equipment and the mobile terminal.
Wherein, the electronic equipment includes TWS earphone or VR equipment.
Wherein, the first terminal and the second terminal utilize second AES key progress coded communication, comprising:
Cryptographic operation is carried out to target data using second AES key, obtains encrypted data, and be sent to institute Second terminal is stated, so that operation is decrypted to the encrypted data using second AES key in the second terminal Obtain the target data.
It is wherein, described to store the RSA private key using the first AES key, comprising:
First AES key is created, cryptographic operation is carried out to the RSA private key using first AES key, and deposit Store up encrypted information and first AES key.
Wherein, before being decrypted to obtain second AES key to the encryption key using the RSA private key, also Include:
The encrypted information is obtained, and the encrypted information is decrypted using first AES key Operation obtains the RSA private key.
To achieve the above object, this application provides a kind of data communications methods, are applied to second terminal, described second eventually End is connected with first terminal, which comprises
When receiving RSA public key, the second AES key is created;
Cryptographic operation is carried out to second AES key using the RSA public key and obtains encryption key;
The encryption key is sent to the first terminal;
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specific For another in the electronic equipment and the mobile terminal.
To achieve the above object, this application provides a kind of data communication systems, are applied to first terminal, described first eventually End is connected with second terminal, the system comprises:
Initialization module discloses the RSA public key for creating RSA public key and RSA private key, and close using the first AES Key stores the RSA private key;
Module is obtained, the encryption key sent for obtaining the second terminal;Wherein, the encryption key is described the Two terminals encrypt the second AES key using the RSA public key;
Deciphering module, it is close for being decrypted to obtain the 2nd AES to the encryption key using the RSA private key Key, so that the first terminal and the second terminal carry out coded communication using second AES key;
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specific For another in the electronic equipment and the mobile terminal.
To achieve the above object, this application provides a kind of data communication systems, are applied to second terminal, described second eventually End is connected with first terminal, the system comprises:
Creation module, for creating the second AES key when receiving RSA public key;
Encrypting module obtains encryption key for carrying out cryptographic operation using the second AES key described in the RSA public key;
Sending module, for the encryption key to be sent to the first terminal;
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specific For another in the electronic equipment and the mobile terminal.
To achieve the above object, this application provides a kind of electronic equipment, comprising:
Memory, for storing computer program;
Processor is realized when for executing the computer program such as the step of above-mentioned data communications method.
To achieve the above object, this application provides a kind of computer readable storage medium, the computer-readable storages It is stored with computer program on medium, the step such as above-mentioned data communications method is realized when the computer program is executed by processor Suddenly.
By above scheme it is found that a kind of data communications method provided by the present application, comprising: creation RSA public key and RSA are private Key discloses the RSA public key, and stores the RSA private key using the first AES key;Obtain what the second terminal was sent Encryption key;Wherein, the encryption key is that the second terminal encrypts to obtain using the RSA public key to the second AES key 's;The encryption key is decrypted using the RSA private key to obtain second AES key, so as to the first terminal Coded communication is carried out using second AES key with the second terminal;Wherein, the first terminal is specially electronic equipment Any one of with mobile terminal, the second terminal is specially another in the electronic equipment and the mobile terminal.
Data communications method provided by the present application is added between mobile terminal and electronic equipment using the second AES key Close communication, AES DSE arithmetic encryption and decryption use same key, and enciphering rate is fast, high-efficient.Second AES key is adopted Encrypted transmission is carried out with RSA asymmetry cipher system, it is ensured that the second AES key transmits between mobile terminal and electronic equipment Safety.It can be seen that data communications method provided by the present application, improves data between electronic equipment and mobile terminal and passes Defeated safety.Disclosed herein as well is a kind of data communication system and a kind of electronic equipment and a kind of computer-readable storage medium Matter is equally able to achieve above-mentioned technical effect.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Application.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.Attached drawing is and to constitute specification for providing further understanding of the disclosure A part, be used to explain the disclosure together with following specific embodiment, but do not constitute the limitation to the disclosure.Attached In figure:
Fig. 1 is a kind of flow chart of data communications method shown according to an exemplary embodiment;
Fig. 2 is the flow chart of another data communications method shown according to an exemplary embodiment;
Fig. 3 is the flow chart according to another data communications method shown in an exemplary embodiment;
Fig. 4 is a kind of structure chart of data communication system shown according to an exemplary embodiment;
Fig. 5 is the structure chart of another data communication system shown according to an exemplary embodiment;
Fig. 6 is the structure chart according to a kind of electronic equipment shown in an exemplary embodiment.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Conventionally, as the data transmission information secret grade between electronic equipment and mobile terminal is low, safety Property is poor.Therefore, coded communication is carried out using AES key in this application, AES DSE arithmetic encryption and decryption is using same close Key, enciphering rate are fast, high-efficient.Encrypted transmission is carried out using RSA asymmetry cipher system to AES key simultaneously, it is ensured that The safety of cipher key delivery.
The embodiment of the present application discloses a kind of data communications method, improves data between electronic equipment and mobile terminal and passes Defeated safety.
Referring to Fig. 1, a kind of flow chart of data communications method shown according to an exemplary embodiment, as shown in Figure 1, packet It includes:
S101: creation RSA public key and RSA private key disclose the RSA public key, and using described in the storage of the first AES key RSA private key;
The executing subject first terminal of the present embodiment, the first terminal can be any in electronic equipment and mobile terminal , second terminal is another in electronic equipment and mobile terminal, which is connected with mobile terminal, and user can lead to Cross mobile terminal controlling electronic devices.Electronic equipment herein can include but is not limited to TWS earphone and VR equipment etc., mobile whole End can be the end PC, mobile phone terminal etc..
In specific implementation, RSA public private key pair is created first, RSA public key is disclosed, i.e., second terminal possesses RSA public affairs Key can be decrypted the information of RSA private key encryption.
It is understood that needing to store it after creating RSA private key.In the present embodiment not to storage mode into Row is specific to be limited, and carries out encryption storage to the RSA private key for example, can use the first AES key, such mode will be in next reality Example is applied to describe in detail.
S102: the encryption key that the second terminal is sent is obtained;Wherein, the encryption key is the second terminal benefit The second AES key is encrypted with the RSA public key;
In this step, the encryption key that second terminal is sent is obtained, which is that second terminal utilizes RSA public key Second AES key is encrypted, which is what second terminal was generated by AES key generation module, rear Data in continuous step for needing to transmit to both sides carry out encryption and decryption.
It should be noted that the implementation procedure of second terminal may include: to create the 2nd AES when receiving RSA public key Key;Cryptographic operation is carried out to second AES key using the RSA public key and obtains encryption key;By the encryption key It is sent to the first terminal.
In specific implementation, second terminal passes through AES key generation module the second AES key of creation first, recycles public The RSA public key opened encrypts it to obtain encryption key, and the encryption key is returned.
S103: the encryption key is decrypted using the RSA private key to obtain second AES key, with toilet It states first terminal and the second terminal and carries out coded communication using second AES key.
In this step, when receiving encryption key, it is decrypted using the RSA private key being locally stored, is obtained The data communication of second AES key, Subsequent electronic equipment and mobile terminal carries out encrypted transmission using the second AES key.
It is understood that carrying out coded communication using the second AES key may include: to utilize second AES key Cryptographic operation is carried out to target data, encrypted data are obtained, and be sent to the second terminal, so as to the second terminal Operation is decrypted to the encrypted data using second AES key and obtains the target data.
It should be noted that when RSA private key encryption store to it is local when, also need benefit before encryption key is decrypted Encryption information is decrypted with corresponding decryption method to obtain the RSA private key.
Data communications method provided by the embodiments of the present application uses the second AES key between mobile terminal and electronic equipment Coded communication is carried out, AES DSE arithmetic encryption and decryption uses same key, and enciphering rate is fast, high-efficient.For the 2nd AES Key carries out encrypted transmission using RSA asymmetry cipher system, it is ensured that the second AES key mobile terminal and electronic equipment it Between the safety transmitted.It can be seen that data communications method provided by the embodiments of the present application, improves electronic equipment and movement eventually The safety that data are transmitted between end.
The embodiment of the present application discloses a kind of data communications method, and relative to a upper embodiment, the present embodiment is to technical side Case has made further instruction and optimization.It is specific:
Referring to fig. 2, the flow chart of another data communications method shown according to an exemplary embodiment, as shown in Fig. 2, Include:
S201: creation RSA public key and RSA private key disclose the RSA public key;
S202: the first AES key of creation carries out cryptographic operation to the RSA private key using first AES key, and Store encrypted information and first AES key;
In the present embodiment, in order to which the storage for guaranteeing RSA private key is safe, storage can be encrypted to it.Specifically, can be first It first passes through AES key generation module and generates the first AES key, and encryption is carried out to RSA private key using first AES key and is deposited Storage.It can guarantee the safety of RSA private key storage using AES DSE arithmetic.
S203: the encryption key that the second terminal is sent is obtained;
S204: operation is decrypted to the encrypted information using first AES key and obtains the RSA private Key;
In this step, after receiving the encryption key of second terminal transmission, first with first AES key to this Operation is decrypted in the encrypted information of ground storage, obtains RSA private key, so that subsequent step utilizes the RSA private key pair encryption Key is decrypted.
S205: the encryption key is decrypted using the RSA private key to obtain second AES key.
The embodiment of the present application discloses a kind of data communications method, and relative to a upper embodiment, the present embodiment is to technical side Case has made further instruction and optimization.It is specific:
Referring to Fig. 3, the flow chart of another data communications method shown according to an exemplary embodiment, as shown in figure 3, Include:
S301: electronic equipment creates RSA public key and RSA private key, and RSA public key is disclosed;
S302: electronic equipment creates the first AES key, carries out cryptographic operation to RSA private key using the first AES key, and Store encrypted information and the first AES key;
S303: mobile terminal creates the second AES key, carries out cryptographic operation to the second AES key using RSA public key and obtains Encryption key, and encryption key is sent to electronic equipment;
S304: electronic equipment is decrypted operation to encrypted information using the first AES key and obtains RSA private key;
S305: electronic equipment is decrypted to obtain the second AES key using the RSA private key pair encryption key.
As it can be seen that in the present embodiment, the executing subject of S303 is mobile terminal, and the executing subject of other steps sets for electronics It is standby, i.e., it is executed for the creation of the RSA key pair of the second AES key of encryption and decryption and storage by electronic equipment, and be used for data and add The second close AES key is created by mobile terminal.
It describes in detail in Application Example to data transmission method provided by the present application below, specifically, above-mentioned Electronic equipment is TWS earphone, mobile terminal is mobile phone.The process of the generation and transmission of key is as follows:
Step 1:TWS earphone end creates RSA public private key pair, and RSA public key discloses mobile phone terminal;
Step 2:TWS earphone end generates AES key 2 using AES key generation module, is carried out using AES2 to RSA private key Encryption storage;
Step 3: mobile phone terminal creates AES key 1, is sent to TWS earphone end using RSA public key encryption;
After step 4:TWS earphone termination receives encryption information, the RSA private key encrypted using 2 Duis of AES key is decrypted;
Step 5:TWS earphone end is decrypted to obtain AES key 1 using RSA private key pair encryption information.
So far, there is AES key 1, the data communication utilization of subsequent TWS earphone and mobile phone terminal in TWS earphone and mobile phone terminal AES key 1 carries out encrypted transmission.
A kind of data communication system provided by the embodiments of the present application is introduced below, a kind of data described below are logical Letter system can be cross-referenced with a kind of above-described data communications method, which is applied to above-mentioned first terminal.
Referring to fig. 4, the structure chart of a kind of data communication system shown according to an exemplary embodiment, as shown in figure 4, packet It includes:
Initialization module 401 discloses the RSA public key for creating RSA public key and RSA private key, and described in storage RSA private key;
Module 402 is obtained, the encryption key sent for obtaining the second terminal;Wherein, the encryption key is institute State what second terminal encrypted the second AES key using the RSA public key;
Deciphering module 403 obtains the 2nd AES for the encryption key to be decrypted using the RSA private key Key, so that the first terminal and the second terminal carry out coded communication using second AES key.
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specific For another in the electronic equipment and the mobile terminal.
Data communication system provided by the embodiments of the present application uses the second AES key between mobile terminal and electronic equipment Coded communication is carried out, AES DSE arithmetic encryption and decryption uses same key, and enciphering rate is fast, high-efficient.For the 2nd AES Key carries out encrypted transmission using RSA asymmetry cipher system, it is ensured that the second AES key mobile terminal and electronic equipment it Between the safety transmitted.It can be seen that data communications method provided by the embodiments of the present application, improves electronic equipment and movement eventually The safety that data are transmitted between end.
On the basis of the above embodiments, the electronic equipment includes TWS earphone or VR as a preferred implementation manner, Equipment.
On the basis of the above embodiments, the deciphering module 403 includes: as a preferred implementation manner,
Decryption unit, it is close for being decrypted to obtain the 2nd AES to the encryption key using the RSA private key Key;
Communication unit obtains encrypted number for carrying out cryptographic operation to target data using second AES key According to, and it is sent to the second terminal, so that the second terminal utilizes second AES key to the encrypted data Operation is decrypted and obtains the target data.
On the basis of the above embodiments, the initialization module 401 includes: as a preferred implementation manner,
Creating unit discloses the RSA public key for creating RSA public key and RSA private key;
Storage unit encrypts the RSA private key using first AES key for creating the first AES key Operation, and store encrypted information.
On the basis of the above embodiments, as a preferred implementation manner, further include:
Decrypted private key module, for obtaining the encrypted information, and using first AES key to the encryption Information afterwards is decrypted operation and obtains the RSA private key.
Another kind data communication system described below, it is exemplary according to one referring to Fig. 5 applied to above-mentioned second terminal Implement the structure chart of another data communication system exemplified, as shown in Figure 5, comprising:
Creation module 501, for creating the second AES key when receiving RSA public key;
Encrypting module 502, it is close for obtaining encrypting using the progress cryptographic operation of the second AES key described in the RSA public key Key;
Sending module 503, for the encryption key to be sent to the first terminal;
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specific For another in the electronic equipment and the mobile terminal.
About the system in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Present invention also provides a kind of electronic equipment, referring to Fig. 6, a kind of electronic equipment 600 provided by the embodiments of the present application Structure chart, as shown in fig. 6, may include processor 11 and memory 12.The electronic equipment 600 can also include multimedia group Part 13, one or more of input/output (I/O) interface 14 and communication component 15.
Wherein, processor 11 is used to control the integrated operation of the electronic equipment 600, to complete above-mentioned data communications method In all or part of the steps.Memory 12 is used to store various types of data to support the operation in the electronic equipment 600, These data for example may include the instruction of any application or method for operating on the electronic equipment 600, and The relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, video etc..The memory 12 can By any kind of volatibility or non-volatile memory device or their combination realization, such as static random access memory Device (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), erasable programmable Read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory (Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or CD.Multimedia component 13 may include screen and audio component.Wherein shield Curtain for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component may include one A microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in memory It 12 or is sent by communication component 15.Audio component further includes at least one loudspeaker, is used for output audio signal.I/O interface 14 provide interface between processor 11 and other interface modules, other above-mentioned interface modules can be keyboard, mouse, button Deng.These buttons can be virtual push button or entity button.Communication component 15 for the electronic equipment 600 and other equipment it Between carry out wired or wireless communication.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication Component 15 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 600 can be by one or more application specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device, Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array (Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member Part is realized, for executing above-mentioned data communications method.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should The step of above-mentioned data communications method is realized when program instruction is executed by processor.For example, the computer readable storage medium can Think the above-mentioned memory 12 including program instruction, above procedure instruction can be executed by the processor 11 of electronic equipment 600 with complete At above-mentioned data communications method.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

Claims (10)

1. a kind of data communications method, which is characterized in that it is applied to first terminal, the first terminal is connected with second terminal, The described method includes:
RSA public key and RSA private key are created, the RSA public key is disclosed, and stores the RSA private key using the first AES key;
Obtain the encryption key that the second terminal is sent;Wherein, the encryption key is that the second terminal utilizes the RSA Public key encrypts the second AES key;
The encryption key is decrypted using the RSA private key to obtain second AES key, so as to the first terminal Coded communication is carried out using second AES key with the second terminal;
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specially institute State another in electronic equipment and the mobile terminal.
2. data communications method according to claim 1, which is characterized in that the electronic equipment includes that TWS earphone or VR are set It is standby.
3. data communications method according to claim 1, which is characterized in that the first terminal and the second terminal utilize Second AES key carries out coded communication, comprising:
Cryptographic operation is carried out to target data using second AES key, obtains encrypted data, and be sent to described the Two terminals obtain so that operation is decrypted to the encrypted data using second AES key in the second terminal The target data.
4. any one of -3 data communications method according to claim 1, which is characterized in that described to be deposited using the first AES key Store up the RSA private key, comprising:
First AES key is created, cryptographic operation is carried out to the RSA private key using first AES key, and store and add Information and first AES key after close.
5. data communications method according to claim 4, which is characterized in that using the RSA private key to the encryption key Before being decrypted to obtain second AES key, further includes:
The encrypted information is obtained, and operation is decrypted to the encrypted information using first AES key Obtain the RSA private key.
6. a kind of data communications method, which is characterized in that it is applied to second terminal, the second terminal is connected with first terminal, The described method includes:
When receiving RSA public key, the second AES key is created;
Cryptographic operation is carried out to second AES key using the RSA public key and obtains encryption key;
The encryption key is sent to the first terminal;
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specially institute State another in electronic equipment and the mobile terminal.
7. a kind of data communication system, which is characterized in that it is applied to first terminal, the first terminal is connected with second terminal, The system comprises:
Initialization module is disclosed the RSA public key, and deposited using the first AES key for creating RSA public key and RSA private key Store up the RSA private key;
Module is obtained, the encryption key sent for obtaining the second terminal;Wherein, the encryption key is described second whole What end encrypted the second AES key using the RSA public key;
Deciphering module obtains second AES key for the encryption key to be decrypted using the RSA private key, with Toilet states first terminal and the second terminal and carries out coded communication using second AES key;
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specially institute State another in electronic equipment and the mobile terminal.
8. a kind of data communication system, which is characterized in that it is applied to second terminal, the second terminal is connected with first terminal, The system comprises:
Creation module, for creating the second AES key when receiving RSA public key;
Encrypting module obtains encryption key for carrying out cryptographic operation using the second AES key described in the RSA public key;
Sending module, for the encryption key to be sent to the first terminal;
Wherein, the first terminal is specially any one of electronic equipment and mobile terminal, and the second terminal is specially institute State another in electronic equipment and the mobile terminal.
9. a kind of electronic equipment characterized by comprising
Memory, for storing computer program;
Processor, realizing the data communications method as described in any one of claim 1 to 5 when for executing the computer program Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the step of the data communications method as described in any one of claim 1 to 5 when the computer program is executed by processor Suddenly.
CN201811593598.4A 2018-12-25 2018-12-25 A kind of data communications method, system and electronic equipment and storage medium Pending CN109639702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811593598.4A CN109639702A (en) 2018-12-25 2018-12-25 A kind of data communications method, system and electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811593598.4A CN109639702A (en) 2018-12-25 2018-12-25 A kind of data communications method, system and electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109639702A true CN109639702A (en) 2019-04-16

Family

ID=66077463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811593598.4A Pending CN109639702A (en) 2018-12-25 2018-12-25 A kind of data communications method, system and electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109639702A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400735A (en) * 2020-03-17 2020-07-10 北京百度网讯科技有限公司 Data transmission method and device, electronic equipment and computer readable storage medium
CN111597575A (en) * 2020-05-25 2020-08-28 成都卫士通信息产业股份有限公司 Data storage method, device, equipment and storage medium
WO2021022701A1 (en) * 2019-08-08 2021-02-11 平安科技(深圳)有限公司 Information transmission method and apparatus, client terminal, server, and storage medium
CN112580077A (en) * 2020-12-21 2021-03-30 歌尔光学科技有限公司 Information processing method, device, equipment and storage medium
CN112580114A (en) * 2020-12-21 2021-03-30 歌尔光学科技有限公司 Information processing method, device, equipment and storage medium
WO2022062980A1 (en) * 2020-09-23 2022-03-31 歌尔股份有限公司 Communication method and apparatus, and electronic device and storage medium
CN115833985A (en) * 2022-11-16 2023-03-21 中国联合网络通信集团有限公司 Time synchronization method, device, communication terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090094672A1 (en) * 2007-10-05 2009-04-09 Pano Logic, Inc. Universal serial bus selective encryption
CN106685969A (en) * 2016-12-29 2017-05-17 武汉华安科技股份有限公司 Hybrid-encrypted information transmission method and transmission system
CN107181739A (en) * 2017-04-28 2017-09-19 深圳市航天无线通信技术有限公司 Data safety exchange method and device
CN107888379A (en) * 2017-10-25 2018-04-06 百富计算机技术(深圳)有限公司 A kind of method of secure connection, POS terminal and code keypad
CN109005184A (en) * 2018-08-17 2018-12-14 上海小蚁科技有限公司 File encrypting method and device, storage medium, terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090094672A1 (en) * 2007-10-05 2009-04-09 Pano Logic, Inc. Universal serial bus selective encryption
CN106685969A (en) * 2016-12-29 2017-05-17 武汉华安科技股份有限公司 Hybrid-encrypted information transmission method and transmission system
CN107181739A (en) * 2017-04-28 2017-09-19 深圳市航天无线通信技术有限公司 Data safety exchange method and device
CN107888379A (en) * 2017-10-25 2018-04-06 百富计算机技术(深圳)有限公司 A kind of method of secure connection, POS terminal and code keypad
CN109005184A (en) * 2018-08-17 2018-12-14 上海小蚁科技有限公司 File encrypting method and device, storage medium, terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021022701A1 (en) * 2019-08-08 2021-02-11 平安科技(深圳)有限公司 Information transmission method and apparatus, client terminal, server, and storage medium
CN111400735A (en) * 2020-03-17 2020-07-10 北京百度网讯科技有限公司 Data transmission method and device, electronic equipment and computer readable storage medium
CN111597575A (en) * 2020-05-25 2020-08-28 成都卫士通信息产业股份有限公司 Data storage method, device, equipment and storage medium
CN111597575B (en) * 2020-05-25 2023-04-07 成都卫士通信息产业股份有限公司 Data storage method, device, equipment and storage medium
WO2022062980A1 (en) * 2020-09-23 2022-03-31 歌尔股份有限公司 Communication method and apparatus, and electronic device and storage medium
CN112580077A (en) * 2020-12-21 2021-03-30 歌尔光学科技有限公司 Information processing method, device, equipment and storage medium
CN112580114A (en) * 2020-12-21 2021-03-30 歌尔光学科技有限公司 Information processing method, device, equipment and storage medium
CN112580077B (en) * 2020-12-21 2023-01-24 歌尔科技有限公司 Information processing method, device, equipment and storage medium
CN112580114B (en) * 2020-12-21 2023-05-16 歌尔科技有限公司 Information processing method, device, equipment and storage medium
CN115833985A (en) * 2022-11-16 2023-03-21 中国联合网络通信集团有限公司 Time synchronization method, device, communication terminal and storage medium

Similar Documents

Publication Publication Date Title
CN109639702A (en) A kind of data communications method, system and electronic equipment and storage medium
US10237247B2 (en) User interface systems and methods for secure message oriented communications
CN108235772B (en) Data processing method and device based on block chain, storage medium and electronic equipment
CN110492990B (en) Private key management method, device and system under block chain scene
US10230697B2 (en) User terminals, and methods and computer-readable recording mediums storing computer programs for transmitting and receiving messages
CN108769027B (en) Secure communication method, device, mobile terminal and storage medium
CN104244245A (en) Wireless access authentication method, wireless router device and wireless terminal
JP7420779B2 (en) Key protection processing method, device, equipment and storage medium
CN101626567A (en) Short message sending and receiving method, short message sending and receiving device and mobile terminal
JP2019514314A (en) Method, system and medium for using dynamic public key infrastructure to send and receive encrypted messages
CN101895396A (en) Mobile terminal and encryption method thereof
US20160308669A1 (en) Method and System for Real Time Data Protection with Private Key and Algorithm for Transmission and Storage
CN106664197A (en) Method and device for data encrypting
CN102368798A (en) Mobile phone setting control system, control method thereof, mobile phone setting method, apparatus thereof and mobile phone
CN103929312A (en) Mobile terminal and method and system for protecting individual information of mobile terminal
CN109698745A (en) A kind of key management method, system and earphone and storage medium
CN112182624A (en) Encryption method, encryption device, storage medium and electronic equipment
CN103929297A (en) Communication method, encryption method and device for POS and mobile terminal and POS
CN112003697A (en) Encryption and decryption method and device for cryptographic module, electronic equipment and computer storage medium
CN109802827B (en) Key updating method and key updating system
CN104915583A (en) Interface decryption processing method and mobile terminal
CN113365264A (en) Block chain wireless network data transmission method, device and system
CN112636916A (en) Data processing method, data processing device, storage medium and electronic equipment
CN102360407A (en) Communication method for mobile phone and computer
KR101173583B1 (en) Method for Security Application Data in Mobile Terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190416