CN109714743A - A kind of Bluetooth encryption communication means and Bluetooth encryption communication system - Google Patents

A kind of Bluetooth encryption communication means and Bluetooth encryption communication system Download PDF

Info

Publication number
CN109714743A
CN109714743A CN201910129700.3A CN201910129700A CN109714743A CN 109714743 A CN109714743 A CN 109714743A CN 201910129700 A CN201910129700 A CN 201910129700A CN 109714743 A CN109714743 A CN 109714743A
Authority
CN
China
Prior art keywords
secret key
terminal device
current
bluetooth
bluetooth equipment
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
CN201910129700.3A
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.)
Guangzhou Technological Image Technology Co Ltd
Guangzhou Jixiang Technology Co Ltd
Original Assignee
Guangzhou Technological Image Technology 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 Guangzhou Technological Image Technology Co Ltd filed Critical Guangzhou Technological Image Technology Co Ltd
Priority to CN201910129700.3A priority Critical patent/CN109714743A/en
Publication of CN109714743A publication Critical patent/CN109714743A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The present invention relates to technical field of communication safety and comprising, and its purpose is to provide a kind of Bluetooth encryption communication means and Bluetooth encryption communication systems.The invention discloses a kind of Bluetooth encryption communication means, comprising the following steps: S1: terminal device obtains the current secret key index to bluetooth equipment;S2: terminal device is indexed to server using current secret key and obtains current secret key corresponding with current secret key index;S3: terminal device and bluetooth equipment use the progress coded communication of current secret key;S4: after the completion of communication, being confirmed whether to update current secret key, if then entering step S5, if otherwise terminating to communicate;S5: terminal device obtains new key and new key index to server, to form new current secret key and current secret key index.The invention also discloses a kind of Bluetooth encryption communication systems, including bluetooth equipment, terminal device and server.In the present invention, the communication information between terminal device and bluetooth equipment is not easy monitored and intercepts, Bluetooth communication it is highly-safe.

Description

A kind of Bluetooth encryption communication means and Bluetooth encryption communication system
Technical field
The present invention relates to technical field of communication safety and comprising, logical more particularly to a kind of Bluetooth encryption communication means and Bluetooth encryption Letter system.
Background technique
Bluetooth communication is one of communication mode important between terminal device and bluetooth equipment, but because bluetooth is a open Network, Bluetooth communication have the shortcomings that following obvious in safety: the communication information between a. terminal device and bluetooth equipment is held Easily monitored and interception, so that the security mechanism of Bluetooth communication cannot meet the needs the smart machine of high security level;B. bluetooth Security mechanism can not real-time update communication key, the safety of Bluetooth communication is low.
Summary of the invention
In order to solve the above problems existing in the present technology, the present invention provides a kind of Bluetooth encryption communication means and bluetooths Cryptographic communication system.
The technical solution adopted by the present invention is that:
A kind of Bluetooth encryption communication means, comprising the following steps:
S1: the current secret key that bluetooth equipment prestores a current secret key and answers with the current secret key pair indexes, terminal device The current secret key index is obtained to bluetooth equipment;
S2: terminal device is indexed to server using current secret key and obtains current secret key corresponding with current secret key index;
S3: terminal device and bluetooth equipment use the progress coded communication of current secret key;
S4: after the completion of communication, being confirmed whether to update current secret key, if then entering step S5, if otherwise terminating to communicate;
S5: terminal device obtains new key and new key index to server, to update the secret key and secret key of bluetooth equipment Index forms new current secret key and current secret key index.
Preferably, the step S3 includes:
S31: terminal device encrypts the first data to be transmitted using current key, forms the first encryption data, Then the first encryption data is sent to bluetooth equipment;
S32: bluetooth equipment is received the first encryption data and the first encryption data is decrypted using current key;
S33: bluetooth equipment processing decryption after the first data, then using current key to the second data to be transmitted into Row encryption, forms the second encryption data, then the second encryption data is sent to terminal device;
S34: terminal device receives the second encryption data, and then the second encryption data is decrypted simultaneously using current key Processing;
S35: being confirmed whether to continue to communicate, if then return step S31, if otherwise entering step S4.
Preferably, in step s3, the terminal device and/or bluetooth equipment are using aes algorithm progress coded communication.
Preferably, in step s 2, after terminal device obtains current secret key, judge whether to update current secret key, if then S5 is entered step, if otherwise entering step S3.
Preferably, the step S5 includes:
S51: terminal device sends the request for obtaining that new key and new key index to server;
S52: server sends new key and new key index to terminal device;
S53: terminal device uses aes algorithm and current secret key, encrypts to new secret key and new secret key index, completes envelope Dress, then encrypted new secret key and new secret key index are sent to bluetooth equipment, new current secret key is formed in bluetooth equipment It is indexed with current secret key.
Preferably, in the step S1, before terminal device obtains the current secret key index to bluetooth equipment, further include Following steps:
SA1: bluetooth equipment opens broadcast;
SA2: bluetooth equipment waits terminal device to communicate with connection;
SA3: whether confirmation terminal device connect with bluetooth devices, if then entering step S1, if otherwise entering step Rapid SA4;
SA4: whether confirmation broadcast is overtime, if then entering step SA5, if otherwise return step SA2;
SA5: bluetooth equipment, which is closed, broadcasts and enters suspend mode.
Preferably, the step S4 includes:
S41: after the completion of communication, it is confirmed whether to update current secret key, if then entering step S5, if otherwise entering step S42;
S42: terminal device and bluetooth equipment are disconnected and being communicated to connect, then return step SA1.
A kind of Bluetooth encryption communication system, including bluetooth equipment, terminal device and server;
The bluetooth equipment, the current secret key for being preset with a current secret key and answering with the current secret key pair index;For Coded communication is carried out by current secret key and terminal device;
The server, is preset with multiple secret keys and one-to-one multiple secret keys index respectively with multiple secret keys;
The terminal device for obtaining current secret key index to bluetooth equipment, and is indexed using current secret key to service Device obtains current secret key corresponding with current secret key index, then carries out coded communication using current secret key and bluetooth equipment.
Preferably, the terminal device is also used to obtain new key and new key index to server, be set with updating bluetooth Standby secret key and secret key index form new current secret key and current secret key index.
Preferably, the bluetooth equipment includes door-locking system and bluetooth transparent transmission system, the door-locking system and bluetooth transparent transmission System communication connection, the bluetooth transparent transmission system are used to carry out coded communication by current secret key and terminal device.
The beneficial effects of the present invention are: firstly, the data of communications pass through currently between terminal device and bluetooth equipment Secret key carries out coded communication, and in the process, no secret key can not then crack Content of Communication, and thus, it is possible to guarantee the peace of communication data Quan Xing;Secondly, secret key by server admin, avoid secret key due to terminal device and/or blue-teeth equipment management caused by leakage, have Effect improves the safety of communication;Finally, realizing the purpose of secret key on real-time update bluetooth equipment, communication is further improved Safety, the requirement communicated conducive to the smart machine for meeting high security level.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, 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 invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the Examples 1 and 2 of Bluetooth encryption communication means in the present invention;
Fig. 2 is a kind of structural block diagram of the embodiment 6 of Bluetooth encryption communication system in the present invention.
Specific embodiment
Hereinafter reference will be made to the drawings, describes the present invention in detail by way of example.It should be noted that for this The explanation of a little way of example is used to help understand the present invention, but and does not constitute a limitation of the invention.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate: individualism A, individualism B exist simultaneously tri- kinds of situations of A and B, the terms "/and " it is to describe another affiliated partner relationship, indicate may exist two kinds of relationships, for example, A/ and B, can indicate: individually depositing In A, two kinds of situations of individualism A and B, in addition, character "/" herein, typicallying represent forward-backward correlation object is a kind of "or" pass System.
Embodiment 1:
The present embodiment provides a kind of Bluetooth encryption communication means, as shown in Figure 1, comprising the following steps:
S1: the current secret key that bluetooth equipment prestores a current secret key and answers with the current secret key pair indexes, terminal device The current secret key index is obtained to bluetooth equipment.It should be understood that in the present embodiment, the bluetooth equipment is preset with one Current secret key and the current secret key answered with the current secret key pair index;It is logical for carrying out encryption by current secret key and terminal device Letter;The bluetooth equipment can be, but not limited to for intelligent door lock system, bluetooth headset, mobile phone, tablet computer, laptop and Any one in the electronic equipments such as vehicle-mounted Bluetooth equipment.The terminal device is used to obtain current secret key rope to bluetooth equipment Draw, and indexed using current secret key to server and obtain current secret key corresponding with current secret key index, then using current close Spoon carries out coded communication with bluetooth equipment;The terminal device can be, but not limited to for mobile phone, tablet computer, laptop, It is any one in the electronic equipments such as smartwatch and VR (Virtual Reality, i.e. virtual reality, abbreviation VR) wearable device Kind.
Specifically, the step S1 includes:
S11: terminal device sends the request for obtaining current key and indexing to bluetooth equipment;
S12: bluetooth equipment sends current key and indexes to terminal device.
S2: terminal device is indexed to server using current secret key and obtains current secret key corresponding with current secret key index. It should be noted that the server is located in terminal device and the addressable network of bluetooth equipment in the present embodiment, it is used for Store secret key and secret key index.It is preferably provided with, the server, is preset with multiple secret keys and distinguishes one with multiple secret keys and is a pair of The multiple secret keys index answered.It should be understood that the current secret key index includes but are not limited to the end in the present embodiment The identification information of the server log account information of end equipment, user identity information and/or bluetooth equipment.
Specifically, the step S2 includes:
S21: terminal device, which indexes to send to server using current secret key, obtains the corresponding current key of secret key index Request;
S22: server sends current secret key and indexes corresponding current secret key to terminal device.
S3: terminal device and bluetooth equipment use the progress coded communication of current secret key.It should be noted that the terminal is set Standby and bluetooth equipment is encrypted to communicate using the data that same secret key pair communicates in a communication process, can avoid solution Close process is excessively complicated.
S4: after the completion of communication, being confirmed whether to update current secret key, if then entering step S5, if otherwise terminating to communicate.It answers When understanding, in this step, can be confirmed whether to update current secret key by terminal device.
S5: terminal device obtains new key and new key index to server, to update the secret key and secret key of bluetooth equipment Index forms new current secret key and current secret key index.It should be understood that terminal device and bluetooth equipment are in primary encryption Before communication or after the completion of primary encryption communication, the secret key and secret key index of renewable bluetooth equipment can be according to user demands It carries out.
In the present embodiment, firstly, the data of communications are by working as between terminal device and bluetooth equipment by step S3 Preceding secret key carries out coded communication, and in the process, no secret key can not then crack Content of Communication, and thus, it is possible to guarantee communication data Safety;Secondly, secret key by server admin, avoid secret key due to terminal device and/or blue-teeth equipment management caused by leakage, Effectively increase the safety of communication;Finally, the purpose of secret key on real-time update bluetooth equipment is realized by step S5, into One step improves the safety of communication, the requirement communicated conducive to the smart machine for meeting high security level.
Embodiment 2:
The present embodiment provides a kind of Bluetooth encryption communication means, as shown in Figure 1, comprising the following steps:
S1: the current secret key that bluetooth equipment prestores a current secret key and answers with the current secret key pair indexes, terminal device The current secret key index is obtained to bluetooth equipment.It should be understood that in the present embodiment, the bluetooth equipment is preset with one Current secret key and the current secret key answered with the current secret key pair index;It is logical for carrying out encryption by current secret key and terminal device Letter;The bluetooth equipment can be, but not limited to for intelligent door lock system, bluetooth headset, mobile phone, tablet computer, laptop and Any one in the electronic equipments such as vehicle-mounted Bluetooth equipment.The terminal device is used to obtain current secret key rope to bluetooth equipment Draw, and indexed using current secret key to server and obtain current secret key corresponding with current secret key index, then using current close Spoon carries out coded communication with bluetooth equipment;The terminal device can be, but not limited to for mobile phone, tablet computer, laptop, It is any one in the electronic equipments such as smartwatch and VR (Virtual Reality, i.e. virtual reality, abbreviation VR) wearable device Kind.
Specifically, the step S1 includes:
S11: terminal device sends the request for obtaining current key and indexing to bluetooth equipment;
S12: bluetooth equipment sends current key and indexes to terminal device.
S2: terminal device is indexed to server using current secret key and obtains current secret key corresponding with current secret key index. It should be noted that the server is located in terminal device and the addressable network of bluetooth equipment in the present embodiment, it is used for Store secret key and secret key index.It is preferably provided with, the server, is preset with multiple secret keys and distinguishes one with multiple secret keys and is a pair of The multiple secret keys index answered.It should be understood that the current secret key index includes but are not limited to the end in the present embodiment The identification information of the server log account information of end equipment, user identity information and/or bluetooth equipment.
Specifically, the step S2 includes:
S21: terminal device, which indexes to send to server using current secret key, obtains the corresponding current key of secret key index Request;
S22: server sends current secret key and indexes corresponding current secret key to terminal device.
Further, in step s 2, after terminal device obtains current secret key, judge whether to update current secret key, if S5 is then entered step, if otherwise entering step S3.
It should be noted that the present embodiment makes terminal device and bluetooth equipment before primary encryption communication or is once adding After the completion of close communication, the secret key and secret key index of renewable bluetooth equipment can be carried out according to user demand.
S3: terminal device and bluetooth equipment use the progress coded communication of current secret key.It should be noted that the terminal is set Standby and bluetooth equipment is encrypted to communicate using the data that same secret key pair communicates in a communication process, can avoid solution Close process is excessively complicated.
Further, in step s3, the terminal device and/or bluetooth equipment use AES (Advanced Encryption Standard, AES) algorithm progress coded communication.It should be understood that in this implementation, can also be used but not only It is limited to DES (Data Encryption Standard, data encryption standards) algorithm or 3DES (Triple DES, triple data Encryption Algorithm) etc. symmetric encipherment algorithms encrypted.It should be noted that aes algorithm is most popular in symmetric key encryption One of algorithm, on software and hardware can rapidly encryption and decryption, be comparatively relatively easy to implementation, and only need seldom deposit Reservoir.
In the present embodiment, the step S3 includes:
S31: terminal device encrypts the first data to be transmitted using current key, forms the first encryption data, Then the first encryption data is sent to bluetooth equipment;
S32: bluetooth equipment is received the first encryption data and the first encryption data is decrypted using current key;
S33: bluetooth equipment processing decryption after the first data, then using current key to the second data to be transmitted into Row encryption, forms the second encryption data, then the second encryption data is sent to terminal device;
S34: terminal device receives the second encryption data, and then the second encryption data is decrypted simultaneously using current key Processing;
S35: being confirmed whether to continue to communicate, if then return step S31, if otherwise entering step S4.
It should be noted that realizing the encrypted transmission between terminal device and bluetooth equipment, herein mistake by step S3 Cheng Zhong, no secret key can not then crack the communication data between terminal device and bluetooth equipment;If communication process is tampered, solution Communication data after close will be unable to identify, thus can guarantee the integrality of application layer communication data.
S4: after the completion of communication, being confirmed whether to update current secret key, if then entering step S5, if otherwise terminating to communicate.It answers When understanding, in this step, can be confirmed whether to update current secret key by terminal device.
S5: terminal device obtains new key and new key index to server, to update the secret key and secret key of bluetooth equipment Index forms new current secret key and current secret key index.It should be understood that terminal device and bluetooth equipment are in primary encryption Before communication or after the completion of primary encryption communication, the secret key and secret key index of renewable bluetooth equipment can be according to user demands It carries out.
Embodiment 3:
The present embodiment provides a kind of Bluetooth encryption communication means, as shown in Figure 1, comprising the following steps:
SA1: bluetooth equipment opens broadcast;Specifically, the bluetooth equipment is according to the equipment sequence of the bluetooth equipment Number composition Bluetooth broadcast packet, the Bluetooth broadcast packet is broadcasted, to open broadcast.
SA2: bluetooth equipment waits terminal device to communicate with connection;
SA3: whether confirmation terminal device connect with bluetooth devices, if then entering step S1, if otherwise entering step Rapid SA4;
SA4: whether confirmation broadcast is overtime, if then entering step SA5, if otherwise return step SA2;
SA5: bluetooth equipment, which is closed, broadcasts and enters suspend mode.
S1: the current secret key that bluetooth equipment prestores a current secret key and answers with the current secret key pair indexes, terminal device The current secret key index is obtained to bluetooth equipment.It should be understood that in the present embodiment, the bluetooth equipment is preset with one Current secret key and the current secret key answered with the current secret key pair index;It is logical for carrying out encryption by current secret key and terminal device Letter;The bluetooth equipment can be, but not limited to for intelligent door lock system, bluetooth headset, mobile phone, tablet computer, laptop and Any one in the electronic equipments such as vehicle-mounted Bluetooth equipment.The terminal device is used to obtain current secret key rope to bluetooth equipment Draw, and indexed using current secret key to server and obtain current secret key corresponding with current secret key index, then using current close Spoon carries out coded communication with bluetooth equipment;The terminal device can be, but not limited to for mobile phone, tablet computer, laptop, It is any one in the electronic equipments such as smartwatch and VR (Virtual Reality, i.e. virtual reality, abbreviation VR) wearable device Kind.
Specifically, the step S1 includes:
S11: terminal device sends the request for obtaining current key and indexing to bluetooth equipment;
S12: bluetooth equipment sends current key and indexes to terminal device.
S2: terminal device is indexed to server using current secret key and obtains current secret key corresponding with current secret key index. It should be noted that the server is located in terminal device and the addressable network of bluetooth equipment in the present embodiment, it is used for Store secret key and secret key index.It is preferably provided with, the server, is preset with multiple secret keys and distinguishes one with multiple secret keys and is a pair of The multiple secret keys index answered.It should be understood that the current secret key index includes but are not limited to the end in the present embodiment The identification information of the server log account information of end equipment, user identity information and/or bluetooth equipment.
Specifically, the step S2 includes:
S21: terminal device, which indexes to send to server using current secret key, obtains the corresponding current key of secret key index Request;
S22: server sends current secret key and indexes corresponding current secret key to terminal device.
Further, in step s 2, after terminal device obtains current secret key, judge whether to update current secret key, if S5 is then entered step, if otherwise entering step S3.
It should be noted that the present embodiment makes terminal device and bluetooth equipment before primary encryption communication or is once adding After the completion of close communication, the secret key and secret key index of renewable bluetooth equipment can be carried out according to user demand.
S3: terminal device and bluetooth equipment use the progress coded communication of current secret key.It should be noted that the terminal is set Standby and bluetooth equipment is encrypted to communicate using the data that same secret key pair communicates in a communication process, can avoid solution Close process is excessively complicated.
S4: after the completion of communication, being confirmed whether to update current secret key, if then entering step S5, if otherwise terminating to communicate.It answers When understanding, in this step, can be confirmed whether to update current secret key by terminal device.
Further, the step S4 includes:
S41: after the completion of communication, it is confirmed whether to update current secret key, if then entering step S5, if otherwise entering step S42;
S42: terminal device and bluetooth equipment are disconnected and being communicated to connect, then return step SA1.
S5: terminal device obtains new key and new key index to server, to update the secret key and secret key of bluetooth equipment Index forms new current secret key and current secret key index.It should be understood that terminal device and bluetooth equipment are in primary encryption Before communication or after the completion of primary encryption communication, the secret key and secret key index of renewable bluetooth equipment can be according to user demands It carries out.
This gives the specific embodiments of bluetooth equipment and terminal equipment in communication, and prior art reality can be used It is existing, herein not with repeat.
Embodiment 4:
The present embodiment provides a kind of Bluetooth encryption communication means, as shown in Figure 1, comprising the following steps:
SA1: bluetooth equipment opens broadcast;Specifically, the bluetooth equipment is according to the equipment sequence of the bluetooth equipment Number composition Bluetooth broadcast packet, the Bluetooth broadcast packet is broadcasted, to open broadcast.
SA2: bluetooth equipment waits terminal device to communicate with connection;
SA3: whether confirmation terminal device connect with bluetooth devices, if then entering step S1, if otherwise entering step Rapid SA4;
SA4: whether confirmation broadcast is overtime, if then entering step SA5, if otherwise return step SA2;
SA5: bluetooth equipment, which is closed, broadcasts and enters suspend mode.
S1: the current secret key that bluetooth equipment prestores a current secret key and answers with the current secret key pair indexes, terminal device The current secret key index is obtained to bluetooth equipment.It should be understood that in the present embodiment, the bluetooth equipment is preset with one Current secret key and the current secret key answered with the current secret key pair index;It is logical for carrying out encryption by current secret key and terminal device Letter;The bluetooth equipment can be, but not limited to for intelligent door lock system, bluetooth headset, mobile phone, tablet computer, laptop and Any one in the electronic equipments such as vehicle-mounted Bluetooth equipment.The terminal device is used to obtain current secret key rope to bluetooth equipment Draw, and indexed using current secret key to server and obtain current secret key corresponding with current secret key index, then using current close Spoon carries out coded communication with bluetooth equipment;The terminal device can be, but not limited to for mobile phone, tablet computer, laptop, It is any one in the electronic equipments such as smartwatch and VR (Virtual Reality, i.e. virtual reality, abbreviation VR) wearable device Kind.
Specifically, the step S1 includes:
S11: terminal device sends the request for obtaining current key and indexing to bluetooth equipment;
S12: bluetooth equipment sends current key and indexes to terminal device.
S2: terminal device is indexed to server using current secret key and obtains current secret key corresponding with current secret key index. It should be noted that the server is located in terminal device and the addressable network of bluetooth equipment in the present embodiment, it is used for Store secret key and secret key index.It is preferably provided with, the server, is preset with multiple secret keys and distinguishes one with multiple secret keys and is a pair of The multiple secret keys index answered.It should be understood that the current secret key index includes but are not limited to the end in the present embodiment The identification information of the server log account information of end equipment, user identity information and/or bluetooth equipment.
Specifically, the step S2 includes:
S21: terminal device, which indexes to send to server using current secret key, obtains the corresponding current key of secret key index Request;
S22: server sends current secret key and indexes corresponding current secret key to terminal device.
Further, in step s 2, after terminal device obtains current secret key, judge whether to update current secret key, if S5 is then entered step, if otherwise entering step S3.
It should be noted that the present embodiment makes terminal device and bluetooth equipment before primary encryption communication or is once adding After the completion of close communication, the secret key and secret key index of renewable bluetooth equipment can be carried out according to user demand.
S3: terminal device and bluetooth equipment use the progress coded communication of current secret key.It should be noted that the terminal is set Standby and bluetooth equipment is encrypted to communicate using the data that same secret key pair communicates in a communication process, can avoid solution Close process is excessively complicated.
Further, in step s3, the terminal device and/or bluetooth equipment use AES (Advanced Encryption Standard, AES) algorithm progress coded communication.It should be understood that in this implementation, can also be used but not only It is limited to DES (Data Encryption Standard, data encryption standards) algorithm or 3DES (Triple DES, triple data Encryption Algorithm) etc. symmetric encipherment algorithms encrypted.It should be noted that aes algorithm is most popular in symmetric key encryption One of algorithm, on software and hardware can rapidly encryption and decryption, be comparatively relatively easy to implementation, and only need seldom deposit Reservoir.
In the present embodiment, the step S3 includes:
S31: terminal device encrypts the first data to be transmitted using current key, forms the first encryption data, Then the first encryption data is sent to bluetooth equipment;
S32: bluetooth equipment is received the first encryption data and the first encryption data is decrypted using current key;
S33: bluetooth equipment processing decryption after the first data, then using current key to the second data to be transmitted into Row encryption, forms the second encryption data, then the second encryption data is sent to terminal device;
S34: terminal device receives the second encryption data, and then the second encryption data is decrypted simultaneously using current key Processing;
S35: being confirmed whether to continue to communicate, if then return step S31, if otherwise entering step S4.
It should be noted that realizing the encrypted transmission between terminal device and bluetooth equipment, herein mistake by step S3 Cheng Zhong, no secret key can not then crack the communication data between terminal device and bluetooth equipment;If communication process is tampered, solution Communication data after close will be unable to identify, thus can guarantee the integrality of application layer communication data.
S4: after the completion of communication, being confirmed whether to update current secret key, if then entering step S5, if otherwise terminating to communicate.It answers When understanding, in this step, can be confirmed whether to update current secret key by terminal device.
Further, the step S4 includes:
S41: after the completion of communication, it is confirmed whether to update current secret key, if then entering step S5, if otherwise entering step S42;
S42: terminal device and bluetooth equipment are disconnected and being communicated to connect, then return step SA1.
S5: terminal device obtains new key and new key index to server, to update the secret key and secret key of bluetooth equipment Index forms new current secret key and current secret key index.It should be understood that terminal device and bluetooth equipment are in primary encryption Before communication or after the completion of primary encryption communication, the secret key and secret key index of renewable bluetooth equipment can be according to user demands It carries out.
Further, the step S5 includes:
S51: terminal device sends the request for obtaining that new key and new key index to server;
S52: server sends new key and new key index to terminal device;
S53: terminal device is packaged new key and new key index, forms new current secret key and current secret key rope Draw.
Further, in step S53, using the current secret key of aes algorithm and step S1 into S4, to new secret key and New secret key index is encrypted, and encapsulation is completed, then encrypted new secret key and new secret key index are sent to bluetooth equipment, with more The secret key and secret key index of new bluetooth equipment form new current secret key and current secret key index in bluetooth equipment.
Embodiment 5:
A kind of Bluetooth encryption communication system, as shown in Fig. 2, including bluetooth equipment, terminal device and server;
The bluetooth equipment, the current secret key for being preset with a current secret key and answering with the current secret key pair index;For Coded communication is carried out by current secret key and terminal device;In the present embodiment, the bluetooth equipment be can be, but not limited to as intelligence It is any one in the electronic equipments such as door-locking system, bluetooth headset, mobile phone, tablet computer, laptop and vehicle-mounted Bluetooth equipment Kind.
The server, is preset with multiple secret keys and one-to-one multiple secret keys index respectively with multiple secret keys;
The terminal device for obtaining current secret key index to bluetooth equipment, and is indexed using current secret key to service Device obtains current secret key corresponding with current secret key index, then carries out coded communication using current secret key and bluetooth equipment.This In embodiment, the terminal device be can be, but not limited to as mobile phone, tablet computer, laptop, desktop computer, smartwatch With any one in the electronic equipments such as VR (Virtual Reality, i.e. virtual reality, abbreviation VR) wearable device.
Further, the terminal device is also used to obtain new key and new key index to server, with more Xinlan The secret key and secret key of tooth equipment index, and form new current secret key and current secret key index.
It should be understood that the current secret key index includes but are not limited to the terminal device in the present embodiment The identification information of server log account information, user identity information and/or bluetooth equipment.
In the present embodiment, the data of communications are added by current secret key between the terminal device and bluetooth equipment Close communication, in the process, no secret key can not then crack Content of Communication, and thus, it is possible to guarantee the safety of communication data;Secondly, Secret key by server admin, avoid secret key due to terminal device and/or blue-teeth equipment management caused by leakage, effectively increase logical The safety of letter;Finally, terminal device can think that server obtains new secret key and new secret key index, it can be achieved that real-time update bluetooth is set The purpose of standby upper secret key, further improves the safety of communication, is communicated conducive to the smart machine for meeting high security level Requirement.
Embodiment 6:
To provide a kind of intelligent door lock system, as shown in Fig. 2, the present embodiment carries out following change on the basis of embodiment 5 Into, the bluetooth equipment includes door-locking system and bluetooth transparent transmission system, and the door-locking system is connect with bluetooth transparent transmission system communication, The bluetooth transparent transmission system is used to carry out coded communication by current secret key and terminal device.It should be understood that the present embodiment A specific embodiment of bluetooth equipment is provided, the realization such as display screen and bluetooth transparent transmission system, this implementation can also be used Example can be applied to door lock technical field, realize the intelligence of door lock.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of Bluetooth encryption communication means, it is characterised in that: the following steps are included:
S1: the current secret key that bluetooth equipment prestores a current secret key and answers with the current secret key pair indexes, and terminal device is to indigo plant Tooth equipment obtains the current secret key index;
S2: terminal device is indexed to server using current secret key and obtains current secret key corresponding with current secret key index;
S3: terminal device and bluetooth equipment use the progress coded communication of current secret key;
S4: after the completion of communication, being confirmed whether to update current secret key, if then entering step S5, if otherwise terminating to communicate;
S5: terminal device obtains new key and new key index to server, to update the secret key and secret key index of bluetooth equipment, Form new current secret key and current secret key index.
2. a kind of Bluetooth encryption communication means according to claim 1, it is characterised in that: the step S3 includes:
S31: terminal device encrypts the first data to be transmitted using current key, forms the first encryption data, then First encryption data is sent to bluetooth equipment;
S32: bluetooth equipment is received the first encryption data and the first encryption data is decrypted using current key;
S33: then the first data after bluetooth equipment processing decryption add the second data to be transmitted using current key It is close, the second encryption data is formed, then the second encryption data is sent to terminal device;
S34: terminal device receives the second encryption data, and then the second encryption data is decrypted and is located using current key Reason;
S35: being confirmed whether to continue to communicate, if then return step S31, if otherwise entering step S4.
3. a kind of Bluetooth encryption communication means according to claim 1 or 2, it is characterised in that: in step s3, the end End equipment and/or bluetooth equipment are using aes algorithm progress coded communication.
4. a kind of Bluetooth encryption communication means according to claim 1 or 2, it is characterised in that: in step s 2, terminal is set After the standby current secret key of acquisition, judge whether to update current secret key, if then entering step S5, if otherwise entering step S3.
5. a kind of Bluetooth encryption communication means according to claim 1, it is characterised in that: the step S5 includes:
S51: terminal device sends the request for obtaining that new key and new key index to server;
S52: server sends new key and new key index to terminal device;
S53: terminal device uses aes algorithm and current secret key, encrypts to new secret key and new secret key index, completes encapsulation, Encrypted new secret key and new secret key index are sent to bluetooth equipment again, new current secret key is formed in bluetooth equipment and works as Preceding secret key index.
6. a kind of Bluetooth encryption communication means according to claim 1, it is characterised in that: in the step S1, in terminal It is further comprising the steps of before equipment obtains the current secret key index to bluetooth equipment:
SA1: bluetooth equipment opens broadcast;
SA2: bluetooth equipment waits terminal device to communicate with connection;
SA3: whether confirmation terminal device connect with bluetooth devices, if then entering step S1, if otherwise entering step SA4;
SA4: whether confirmation broadcast is overtime, if then entering step SA5, if otherwise return step SA2;
SA5: bluetooth equipment, which is closed, broadcasts and enters suspend mode.
7. a kind of Bluetooth encryption communication means according to claim 6, it is characterised in that: the step S4 includes:
S41: after the completion of communication, it is confirmed whether to update current secret key, if then entering step S5, if otherwise entering step S42;
S42: terminal device and bluetooth equipment are disconnected and being communicated to connect, then return step SA1.
8. a kind of Bluetooth encryption communication system, it is characterised in that: including bluetooth equipment, terminal device and server;
The bluetooth equipment, the current secret key for being preset with a current secret key and answering with the current secret key pair index;For passing through Current secret key and terminal device carry out coded communication;
The server, is preset with multiple secret keys and one-to-one multiple secret keys index respectively with multiple secret keys;
The terminal device for obtaining current secret key index to bluetooth equipment, and is indexed to server using current secret key and is obtained Current secret key corresponding with current secret key index is taken, then carries out coded communication using current secret key and bluetooth equipment.
9. a kind of Bluetooth encryption communication system according to claim 8, it is characterised in that: the terminal device is also used to New key and new key index are obtained to server, to update the secret key and secret key index of bluetooth equipment, is formed new current close Spoon and current secret key index.
10. a kind of Bluetooth encryption communication system according to claim 8 or claim 9, it is characterised in that: the bluetooth equipment includes Door-locking system and bluetooth transparent transmission system, the door-locking system are connect with bluetooth transparent transmission system communication, and the bluetooth transparent transmission system is used Coded communication is carried out with terminal device in passing through current secret key.
CN201910129700.3A 2019-02-21 2019-02-21 A kind of Bluetooth encryption communication means and Bluetooth encryption communication system Pending CN109714743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910129700.3A CN109714743A (en) 2019-02-21 2019-02-21 A kind of Bluetooth encryption communication means and Bluetooth encryption communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910129700.3A CN109714743A (en) 2019-02-21 2019-02-21 A kind of Bluetooth encryption communication means and Bluetooth encryption communication system

Publications (1)

Publication Number Publication Date
CN109714743A true CN109714743A (en) 2019-05-03

Family

ID=66263714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910129700.3A Pending CN109714743A (en) 2019-02-21 2019-02-21 A kind of Bluetooth encryption communication means and Bluetooth encryption communication system

Country Status (1)

Country Link
CN (1) CN109714743A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188485A (en) * 2020-09-22 2021-01-05 四川长虹电器股份有限公司 Encryption and decryption method based on Bluetooth communication
CN112218277A (en) * 2020-09-07 2021-01-12 天地(常州)自动化股份有限公司 Online inspection system and online inspection method based on Bluetooth transmission

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130251148A1 (en) * 2008-12-29 2013-09-26 Rockstar Consortium Us Lp Bandwidth efficient method and system for obscuring the existence of encryption in a communications channel
CN104469761A (en) * 2014-12-25 2015-03-25 北京深思数盾科技有限公司 Bluetooth communication method
CN105281809A (en) * 2014-05-30 2016-01-27 刘洪明 Auxiliary bluetooth low-power-consumption equipment pairing method and system
US20160100311A1 (en) * 2014-10-06 2016-04-07 Derek D. Kumar Secure broadcast beacon communications
CN107786579A (en) * 2017-12-12 2018-03-09 特斯联(北京)科技有限公司 A kind of safety communicating method being used between bluetooth equipment
CN108229193A (en) * 2018-01-17 2018-06-29 郭娴 A kind of wearable device end message encryption method, encryption data precaution device and wearable device terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130251148A1 (en) * 2008-12-29 2013-09-26 Rockstar Consortium Us Lp Bandwidth efficient method and system for obscuring the existence of encryption in a communications channel
CN105281809A (en) * 2014-05-30 2016-01-27 刘洪明 Auxiliary bluetooth low-power-consumption equipment pairing method and system
US20160100311A1 (en) * 2014-10-06 2016-04-07 Derek D. Kumar Secure broadcast beacon communications
US9763063B2 (en) * 2014-10-06 2017-09-12 Derek D. Kumar Secure broadcast beacon communications
CN104469761A (en) * 2014-12-25 2015-03-25 北京深思数盾科技有限公司 Bluetooth communication method
CN107786579A (en) * 2017-12-12 2018-03-09 特斯联(北京)科技有限公司 A kind of safety communicating method being used between bluetooth equipment
CN108229193A (en) * 2018-01-17 2018-06-29 郭娴 A kind of wearable device end message encryption method, encryption data precaution device and wearable device terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112218277A (en) * 2020-09-07 2021-01-12 天地(常州)自动化股份有限公司 Online inspection system and online inspection method based on Bluetooth transmission
CN112188485A (en) * 2020-09-22 2021-01-05 四川长虹电器股份有限公司 Encryption and decryption method based on Bluetooth communication

Similar Documents

Publication Publication Date Title
CN107026727B (en) A kind of methods, devices and systems for establishing communication between devices
CN111988281B (en) Block chain encryption method based on quantum communication
CN103731756B (en) A kind of Smart Home remote secure access control method based on intelligent cloud television gateway
CN106603496B (en) A kind of guard method, smart card, server and the communication system of data transmission
CN101599188B (en) IPA security certification-based access control system
CN106682903B (en) A kind of feedback validation method of bank paying Licensing Authority information
CN102682506A (en) Intelligent Bluetooth door access control method and device based on symmetric cryptographic technique
CN106656490B (en) Quantum whiteboard data storage method
CN103458400A (en) Key management method for voice encryption communication system
CN106411926A (en) Data encryption communication method and system
CN112491550B (en) Mobile terminal equipment credibility authentication method and system based on Internet of vehicles
CN107483192A (en) A kind of data transmission method and device based on quantum communication
CN106599632B (en) password input method and device
CN102118385A (en) Security domain management method and device
CN109600725A (en) A kind of message encryption method based on SM9 algorithm
CN101534503A (en) Method of establishing virtual security keypad session from a mobile device using java virtual machine
CN107579903B (en) Picture message secure transmission method and system based on mobile device
CN109194701B (en) Data processing method and device
CN109714743A (en) A kind of Bluetooth encryption communication means and Bluetooth encryption communication system
CN104168565A (en) Method for controlling safe communication of intelligent terminal under undependable wireless network environment
CN110351225A (en) A kind of networking method of hardware device, device, system and storage medium
CN106685897A (en) Safe input method, device and system
CN106789000A (en) A kind of secret phone system and method based on TEE technologies and wearable device
CN104506509B (en) A kind of authentication method based on multifunctional safe certification terminal
CN105577624B (en) Client exchange method and client and server

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: 20190503