CN109005541A - Bluetooth connecting method, device and system - Google Patents
Bluetooth connecting method, device and system Download PDFInfo
- Publication number
- CN109005541A CN109005541A CN201810805717.1A CN201810805717A CN109005541A CN 109005541 A CN109005541 A CN 109005541A CN 201810805717 A CN201810805717 A CN 201810805717A CN 109005541 A CN109005541 A CN 109005541A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- bluetooth equipment
- link library
- dynamic link
- device name
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/04—Key management, e.g. using generic bootstrapping architecture [GBA]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
- H04L63/0838—Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of Bluetooth connecting methods, device and system.Wherein, this method comprises: bluetooth equipment generates Dynamic link library password, wherein the Dynamic link library password connected every time is different;The bluetooth equipment generates the bluetooth device name of the bluetooth equipment according to preset concatenate rule according to the mark of the bluetooth equipment and the Dynamic link library password of the bluetooth equipment;The bluetooth equipment broadcasts the bluetooth device name.The present invention solves bluetooth equipment in the prior art and carries out security performance lower technical problem when bluetooth connection.
Description
Technical field
The present invention relates to Bluetooth domains, in particular to a kind of Bluetooth connecting method, device and system.
Background technique
Safe Bluetooth connecting method usually used at present is bluetooth equipment setting static state or Dynamic link library password, when
After receiving connection request, bluetooth equipment shows connection password on the screen, and mobile terminal inputs successful connection after this password.
When static connection password is arranged using the above method, each connection password is fixed, and safety is lower.Separately
Outside, if password is forgotten or lost accidentally, it is necessary to which administrator's resetting, complicated for operation, management cost is higher.If setting is dynamic
State connection password carries out bluetooth connection, then each connection password is all dynamic change, and safety is higher, but requires bluetooth equipment must
There must be display function, to inform the dynamic password for this connection, therefore will increase bluetooth equipment hardware cost, and connect every time
It connects and requires to be manually entered new password, use is cumbersome, troublesome in poeration, poor user experience.
For solve the problems, such as in the prior art bluetooth equipment carry out bluetooth connection when security performance it is lower, at present not yet
It puts forward effective solutions.
Summary of the invention
The embodiment of the invention provides a kind of Bluetooth connecting methods, device and system, blue in the prior art at least to solve
Tooth equipment carries out security performance lower technical problem when bluetooth connection.
According to an aspect of an embodiment of the present invention, a kind of Bluetooth connecting method is provided, comprising: bluetooth equipment generates dynamic
State connection password, wherein the Dynamic link library password connected every time is different;Bluetooth equipment is set according to the mark and bluetooth of bluetooth equipment
Standby Dynamic link library password generates the bluetooth device name of bluetooth equipment according to preset concatenate rule;Bluetooth equipment broadcast is blue
Tooth device name.
Further, when bluetooth equipment detects broadcasting instructions, random number is generated;Determine that random number is this connection
Dynamic link library password.
Further, bluetooth equipment prestores corresponding symmetric key, and bluetooth equipment is according to the mark and indigo plant of bluetooth equipment
The Dynamic link library password of tooth equipment, bluetooth equipment use symmetric key encryption Dynamic link library password, obtain encrypted message;Bluetooth is set
Standby will identify connects with encrypted message according to preset concatenate rule, obtains bluetooth device name.
Further, after bluetooth equipment broadcasts bluetooth device name, bluetooth equipment receives testing for target terminal transmission
Demonstrate,prove information, wherein the target terminal for having logged in target application obtains concatenate rule and master key, sets according to concatenate rule from bluetooth
Extract encrypted message and mark in standby title, key dispersion carried out by mark and master key, obtains symmetric key, using pair
Claim key clear crytpographic key information, is verified information;If be proved to be successful, the connection between target terminal is established.
According to an aspect of an embodiment of the present invention, a kind of Bluetooth connecting method is provided, target terminal receives bluetooth and sets
Standby bluetooth device name, wherein bluetooth equipment according to the mark of bluetooth equipment and the Dynamic link library password of bluetooth equipment, according to
Preset concatenate rule generates the bluetooth device name of bluetooth equipment, and the Dynamic link library password connected every time is different;If target
Terminal has logged in target application, then obtains concatenate rule, and Dynamic link library is obtained from bluetooth device name according to concatenate rule
Password.
Further, bluetooth equipment uses symmetric key encryption Dynamic link library password, obtains encrypted message, then will mark and
Encrypted message is connected according to preset concatenate rule, obtains bluetooth device name, and target terminal logs in target application;Target terminal
Obtain master key;Target terminal extracts mark according to concatenate rule from bluetooth device name, and passes through master key and mark
Key dispersion is carried out, the corresponding key of bluetooth equipment is obtained;Target terminal obtains Dynamic link library by key clear crytpographic key information
Password.
Further, if having logged in target application in target terminal, obtain concatenate rule, and according to concatenate rule from
After obtaining Dynamic link library password in bluetooth device name, using Dynamic link library password as verification information, it is sent to bluetooth equipment,
Wherein, bluetooth equipment verifies verification information according to Dynamic link library password;If be proved to be successful, foundation and bluetooth equipment
Between connection.
According to an aspect of an embodiment of the present invention, a kind of bluetooth connection system is provided, comprising: bluetooth equipment, bluetooth
Equipment generates Dynamic link library password, wherein the Dynamic link library password connected every time is different;According to the mark and bluetooth of bluetooth equipment
The Dynamic link library password of equipment, the bluetooth device name of bluetooth equipment is generated according to preset concatenate rule, and is broadcasted bluetooth and set
Standby title.Target terminal receives the bluetooth device name of bluetooth equipment, and acquisition Dynamic link library is close from bluetooth device name
Code.
Further, bluetooth equipment is also used for symmetric key encryption Dynamic link library password, obtains encrypted message, and will
Mark is connected with encrypted message, obtains bluetooth device name;Target terminal is also used to obtain master key, from bluetooth device name
Mark is extracted, and key dispersion is carried out by master key and mark, obtains the corresponding key of bluetooth equipment, target terminal passes through
Key clear crytpographic key information, obtains Dynamic link library password.
According to an aspect of an embodiment of the present invention, a kind of Bluetooth connection device is provided, comprising: the first generation module,
Dynamic link library password is generated for bluetooth equipment, wherein the Dynamic link library password connected every time is different;Second generation module is used
In bluetooth equipment according to the mark of bluetooth equipment and the Dynamic link library password of bluetooth equipment, generated according to preset concatenate rule blue
The bluetooth device name of tooth equipment;Broadcast module broadcasts bluetooth device name for bluetooth equipment.
According to an aspect of an embodiment of the present invention, a kind of Bluetooth connection device is provided, comprising: receiving module is used for
The bluetooth device name of target terminal reception bluetooth equipment, wherein bluetooth equipment is according to the mark and bluetooth equipment of bluetooth equipment
Dynamic link library password, the bluetooth device name of bluetooth equipment is generated according to preset concatenate rule, the dynamic connected every time connects
Connect password difference;It obtains module and obtains concatenate rule, and according to connection if having logged in target application for target terminal
Rule obtains Dynamic link library password from bluetooth device name.
According to an aspect of an embodiment of the present invention, a kind of storage medium is provided, which is characterized in that storage medium includes
The program of storage, wherein equipment where control storage medium executes above-mentioned Bluetooth connecting method in program operation.
According to an aspect of an embodiment of the present invention, a kind of processor is provided, which is characterized in that processor is for running
Program, wherein program executes above-mentioned Bluetooth connecting method when running.
In embodiments of the present invention, bluetooth equipment generates Dynamic link library password, wherein the Dynamic link library password connected every time
Difference, bluetooth equipment generate the bluetooth equipment of bluetooth equipment according to the mark of bluetooth equipment and the Dynamic link library password of bluetooth equipment
Title, bluetooth equipment broadcast bluetooth device name.Bluetooth equipment generates corresponding dynamic for connection every time and connects in above scheme
Password is connect, thus only have for a kind of bluetooth equipment of fixed password in compared with the existing technology, safety with higher,
Security performance is lower when solving bluetooth equipment progress bluetooth connection in the prior art;And the bluetooth equipment in the application is according to dynamic
State connection password and mark generate bluetooth device name, so that terminal can automatically extract dynamic from bluetooth device name
Connection password, compared with the existing technology in using dynamic password bluetooth equipment, eliminate user be manually entered at the terminal it is dynamic
The troublesome operation of state connection password improves the convenience for using.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to a kind of Bluetooth connecting method of the embodiment of the present application 1;
Fig. 2 is the flow chart according to a kind of Bluetooth connecting method of the embodiment of the present application 2;
Fig. 3 is the schematic diagram according to a kind of bluetooth connection system of the embodiment of the present application 3;
Fig. 4 is a kind of schematic diagram for Bluetooth connection device according to the embodiment of the present application 4;
Fig. 5 is a kind of schematic diagram for Bluetooth connection device according to the embodiment of the present application 5.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of Bluetooth connecting method is provided, this method is executed by bluetooth equipment,
It should be noted that step shown in the flowchart of the accompanying drawings can be in the department of computer science of such as a group of computer-executable instructions
It is executed in system, although also, logical order is shown in flow charts, and it in some cases, can be to be different from herein
Sequence execute shown or described step.
Fig. 1 is according to a kind of flow chart of Bluetooth connecting method of the embodiment of the present application 1, as shown in Figure 1, this method includes
Following steps:
Step S102, bluetooth equipment generate Dynamic link library password, wherein the Dynamic link library password connected every time is different.
Specifically, above-mentioned bluetooth equipment can be terminal device bluetooth-capable, Baffle Box of Bluetooth, bluetooth sweeper etc.
Equipment is able to use mode provided by the present application and is attached with the terminal controlled speaker or sweeper is needed.
Above-mentioned Dynamic link library password can be made of number, be also possible to the combination of number and letter, and what is connected every time is dynamic
State connection password difference refers to that bluetooth equipment generates the Dynamic link library password for this connection before each connection, and every
The Dynamic link library password of secondary connection does not repeat.
In an alternative embodiment, above-mentioned bluetooth equipment is USBKey bluetooth-capable, which can be with
It is the USBKey with screen, can also have screen, only with the USBKey of control button.For only having control button
USBKey, can be when USBKey is activated, generate Dynamic link library password.
Step S104, bluetooth equipment is according to the mark of bluetooth equipment and the Dynamic link library password of bluetooth equipment, according to default
The bluetooth device name of concatenate rule generation bluetooth equipment.
Specifically, the mark of above-mentioned bluetooth equipment can be the sequence number of bluetooth equipment, bluetooth equipment is identified with it to be had
One-to-one relationship, i.e., the mark of each bluetooth equipment are unique, and changeless.
In an alternative embodiment, in the sequence number for being identified as bluetooth equipment of bluetooth equipment, bluetooth equipment is being opened
After dynamic, the Dynamic link library password for this connection is generated, is then attached sequence number and Dynamic link library password, connection
Mode the application is not specifically limited, can be with sequence number preceding, and Dynamic link library password is also possible to sequence number rear, moves rear
State connection password is preceding.
Step S106, bluetooth equipment broadcast bluetooth device name.
In above-mentioned steps S106, the bluetooth device name that bluetooth equipment broadcast generates is being communicated apart from bluetooth equipment
Terminal device in range can then receive the content of bluetooth equipment broadcast, so as to according to the bluetooth equipment name received
Title establishes a connection with bluetooth equipment.
Herein it should be noted that including not only Dynamic link library password in the bluetooth device name that terminal receives, also wrap
Include the sequence number of equipment, arbitrary terminal and which is unaware of in bluetooth device name is partially sequence number, which is partially
Therefore state connection password after any terminal receives bluetooth device name, cannot really be got in bluetooth device name
Dynamic link library password, that is, only knowing to use when bluetooth equipment is attached sequence number and Dynamic link library password
The terminal of concatenate rule can extract the Dynamic link library password for this connection from bluetooth device name, thus with
Bluetooth equipment establishes connection.
And know the terminal of above-mentioned concatenate rule, it can be the terminal for having logged in target application, to reach such
Effect has only logged in the terminal of target application, could be attached with bluetooth equipment.
From the foregoing, it will be observed that the above embodiments of the present application bluetooth equipment generates Dynamic link library password, wherein the dynamic connected every time
Connection password is different, and bluetooth equipment generates bluetooth equipment according to the mark of bluetooth equipment and the Dynamic link library password of bluetooth equipment
Bluetooth device name, bluetooth equipment broadcast bluetooth device name.Bluetooth equipment is that connection generates correspondence every time in above scheme
Dynamic link library password, thus in compared with the existing technology only with a kind of fixed password bluetooth equipment for, have it is higher
Safety, solve in the prior art bluetooth equipment carry out bluetooth connection when security performance it is lower;And the bluetooth in the application
Equipment generates bluetooth device name according to Dynamic link library password and mark, so that terminal can be from bluetooth device name certainly
Dynamic to extract Dynamic link library password, the middle bluetooth equipment using dynamic password, eliminates user at the terminal compared with the existing technology
It is manually entered the troublesome operation of Dynamic link library password, improves the convenience for using.
As a kind of optional embodiment, bluetooth equipment generates Dynamic link library password, comprising:
Step S1021 generates random number when bluetooth equipment detects broadcasting instructions.
Specifically, bluetooth equipment detects broadcasting instructions, it is the finger for controlling bluetooth equipment broadcast bluetooth device name
It enables, can be the instruction that the start button of bluetooth equipment generates, be also possible to the instruction that the broadcast key of bluetooth equipment generates.
Step S1023 determines that random number is the Dynamic link library password of this connection.
In an alternative embodiment, still by taking USBKey as an example, user presses releasing the button for USBKey, unlatching life
Enabling for the USBKey is broadcasting instructions, after USBKey is activated, according to the generating random number software prestored, is generated true
Real random number (i.e. digit is more, and the random number that will not be cracked), and using the true random number of generation as being used to this time connect
Connect the Dynamic link library password used.
As a kind of optional embodiment, bluetooth equipment prestores corresponding symmetric key, and bluetooth equipment is set according to bluetooth
The Dynamic link library password of standby mark and bluetooth equipment generates the bluetooth equipment name of bluetooth equipment according to preset concatenate rule
Claim, comprising:
Step S1041, bluetooth equipment use symmetric key encryption Dynamic link library password, obtain encrypted message.
Specifically, bluetooth equipment has a corresponding symmetric key, the symmetric key be stored in bluetooth equipment it
In, it the use of the Dynamic link library password after symmetric key encryption is encrypted message.
Step S1043, bluetooth equipment connect mark with encrypted message according to preset concatenate rule, obtain bluetooth equipment
Title.
As a kind of optional embodiment, after bluetooth equipment broadcasts bluetooth device name, the above method further include:
Step S108, bluetooth equipment receive the verification information that target terminal is sent, wherein have logged in the target of target application
Terminal obtains concatenate rule and master key, and encrypted message and mark are extracted from bluetooth device name according to concatenate rule, leads to
It crosses mark and master key carries out key dispersion, obtain symmetric key, using symmetric key decryption encrypted message, be verified letter
Breath.
It should be noted that concatenate rule and master key can store the server in target application in above-mentioned steps
In, the target terminal of only login target application can get concatenate rule and master key, to get Dynamic link library
Password is not logged in the terminal of target application because concatenate rule and master key can not be got, is unable to get Dynamic link library
Password.
Step S1010 establishes the connection between target terminal if be proved to be successful.
In an alternative embodiment, by taking target application is bank APP as an example, user uses account on a target terminal
Bank APP is logged in, when needing using USBKey (such as wholesale transfer accounts etc. operation), in the client of bank APP, selection is needed
The bluetooth equipment to be connected, hence into the step of being attached with bluetooth equipment.
Target terminal gets the master key and concatenate rule stored in bank's APP server, and target terminal uses connection
Rule extracts the sequence number and encrypted message of bluetooth equipment from bluetooth device name, reuses sequence number and master key root
According to the key decentralized algorithm prestored, disperse the corresponding symmetric key of bluetooth equipment out, which is bluetooth equipment to dynamic
State connection password used symmetric key when encrypting.
Target terminal is decrypted encrypted message after dispersing symmetric key out, to obtain the dynamic for this connection
Connection password.
The Dynamic link library password decrypted is sent to bluetooth equipment by target terminal, and bluetooth equipment will be tested
Card information is compared with the Dynamic link library password of generation, if comparing successfully is to be proved to be successful, establishes this with target terminal
Secondary connection relationship, user can execute the operation such as transfer accounts by USBKey.
As a kind of optional embodiment, bluetooth equipment USBKey.
Embodiment 2
According to embodiments of the present invention, a kind of embodiment of Bluetooth connecting method is additionally provided, this method is held by target terminal
Row, which can be the target terminal in embodiment 1, for being attached with the bluetooth equipment in embodiment 1.It needs
Illustrate, step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes, although also, logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
Fig. 2 is according to a kind of flow chart of Bluetooth connecting method of the embodiment of the present application 2, as shown in Fig. 2, this method includes
Following steps:
Step S201, target terminal receive the bluetooth device name of bluetooth equipment, wherein bluetooth equipment is according to bluetooth equipment
Mark and bluetooth equipment Dynamic link library password, according to preset concatenate rule generate bluetooth equipment bluetooth device name,
The Dynamic link library password connected every time is different.
Specifically, above-mentioned target terminal can be mobile terminal, bluetooth equipment can be terminal bluetooth-capable and set
It is standby, the equipment such as Baffle Box of Bluetooth, bluetooth sweeper be able to use mode provided by the present application and need to speaker or sweeper into
The terminal of row control is attached.
The mark of above-mentioned bluetooth equipment can be the sequence number of bluetooth equipment, and bluetooth equipment is identified to have with it and be corresponded
Relationship, i.e., the mark of each bluetooth equipment is unique, and changeless.
In an alternative embodiment, in the sequence number for being identified as bluetooth equipment of bluetooth equipment, bluetooth equipment is being opened
After dynamic, the Dynamic link library password for this connection is generated, is then attached sequence number and Dynamic link library password, connection
Mode the application is not specifically limited, can be with sequence number preceding, and Dynamic link library password is also possible to sequence number rear, moves rear
State connection password is preceding.
Step S203 obtains concatenate rule if target terminal has logged in target application, and according to concatenate rule from indigo plant
Dynamic link library password is obtained in tooth device name.
It further include equipment specifically, including not only Dynamic link library password in the bluetooth device name that target terminal receives
Sequence number, arbitrary terminal and which is unaware of in bluetooth device name is partially sequence number, which is partially Dynamic link library
Therefore password after any terminal receives bluetooth device name, cannot really get the dynamic in bluetooth device name
Connection password, that is, only knowing that the connection used when bluetooth equipment is attached sequence number and Dynamic link library password is advised
Terminal then can extract the Dynamic link library password for this connection, to set with bluetooth from bluetooth device name
It is standby to establish connection.
And know the target terminal of above-mentioned concatenate rule, it is the target terminal for having logged in target application, to reach this
The effect of sample has only logged in the terminal of target application, could be attached with bluetooth equipment.
From the foregoing, it will be observed that the above embodiments of the present application target terminal receives the bluetooth device name of bluetooth equipment, wherein bluetooth
Equipment generates bluetooth equipment according to the mark of bluetooth equipment and the Dynamic link library password of bluetooth equipment, according to preset concatenate rule
Bluetooth device name, the Dynamic link library password connected every time is different, if target terminal has logged in target application, the company of acquisition
Rule is connect, and Dynamic link library password is obtained from bluetooth device name according to concatenate rule.Bluetooth equipment is every in above scheme
Secondary connection generates corresponding Dynamic link library password, so that only the bluetooth with a kind of fixed password is set in compared with the existing technology
For standby, safety with higher, security performance is lower when solving bluetooth equipment progress bluetooth connection in the prior art;And
Bluetooth equipment in the application generates bluetooth device name according to Dynamic link library password and mark, so that terminal can be from indigo plant
Dynamic link library password is automatically extracted in tooth device name, the middle bluetooth equipment using dynamic password, is saved compared with the existing technology
User is manually entered the troublesome operation of Dynamic link library password at the terminal, improves the convenience for using.
As a kind of optional embodiment, bluetooth equipment uses symmetric key encryption Dynamic link library password, obtains message in cipher
Breath, then mark is connected with encrypted message according to preset concatenate rule, bluetooth device name is obtained, according to concatenate rule from indigo plant
Dynamic link library password is obtained in tooth device name, comprising:
Step S2031, target terminal log in target application.
Target terminal logs in destination application, for going out to obtain under the corresponding server of mark application program from target application
The master key and concatenate rule of hair.
It should be noted that concatenate rule and master key can store the server in target application in above-mentioned steps
In, the target terminal of only login target application can get concatenate rule and master key, to get Dynamic link library
Password is not logged in the terminal of target application because concatenate rule and master key can not be got, is unable to get Dynamic link library
Password.
Step S2033, target terminal obtain master key.
Specifically, above-mentioned master key can be distributed from the server of target application to target terminal, the master key and target
Using corresponding, that is, the master key that all terminals for logging in target application obtain is identical.
Step S2035, target terminal extracts mark according to concatenate rule from bluetooth device name, and passes through master key
Key dispersion is carried out with mark, obtains the corresponding key of bluetooth equipment.
Specifically, above-mentioned concatenate rule used concatenate rule when being bluetooth equipment connection identifier and encrypted message,
After target terminal obtains concatenate rule, then the mark and encrypted message of bluetooth equipment can be extracted from bluetooth device name.
Step S2037, target terminal obtain Dynamic link library password by key clear crytpographic key information.
As a kind of optional embodiment, if having logged in target application in target terminal, concatenate rule, and root are obtained
According to concatenate rule after obtaining Dynamic link library password in bluetooth device name, method further include:
Step S205 is sent to bluetooth equipment using Dynamic link library password as verification information, wherein bluetooth equipment according to
Dynamic link library password verifies verification information.
Step S207 establishes the connection between bluetooth equipment if be proved to be successful.
Embodiment 3
According to embodiments of the present invention, a kind of embodiment of bluetooth connection system is provided, Fig. 3 is according to the embodiment of the present application
A kind of schematic diagram of 3 bluetooth connection system, as shown in connection with fig. 3, which includes:
Bluetooth equipment 30, bluetooth equipment generate Dynamic link library password, wherein the Dynamic link library password connected every time is different;
According to the Dynamic link library password of the mark of bluetooth equipment and bluetooth equipment, the indigo plant of bluetooth equipment is generated according to preset concatenate rule
Tooth device name, and broadcast bluetooth device name.
Specifically, above-mentioned bluetooth equipment can be terminal device bluetooth-capable, Baffle Box of Bluetooth, bluetooth sweeper etc.
Equipment is able to use mode provided by the present application and is attached with the terminal controlled speaker or sweeper is needed.
The mark of above-mentioned bluetooth equipment can be the sequence number of bluetooth equipment, and bluetooth equipment is identified to have with it and be corresponded
Relationship, i.e., the mark of each bluetooth equipment is unique, and changeless.
In an alternative embodiment, in the sequence number for being identified as bluetooth equipment of bluetooth equipment, bluetooth equipment is being opened
After dynamic, the Dynamic link library password for this connection is generated, is then attached sequence number and Dynamic link library password, connection
Mode the application is not specifically limited, can be with sequence number preceding, and Dynamic link library password is also possible to sequence number rear, moves rear
State connection password is preceding.
Target terminal 32, receives the bluetooth device name of bluetooth equipment, and Dynamic link library is obtained from bluetooth device name
Password.
Specifically, above-mentioned target terminal can be mobile terminal, bluetooth equipment can be terminal bluetooth-capable and set
It is standby, the equipment such as Baffle Box of Bluetooth, bluetooth sweeper be able to use mode provided by the present application and need to speaker or sweeper into
The terminal of row control is attached.
It further include equipment specifically, including not only Dynamic link library password in the bluetooth device name that target terminal receives
Sequence number, arbitrary terminal and which is unaware of in bluetooth device name is partially sequence number, which is partially Dynamic link library
Therefore password after any terminal receives bluetooth device name, cannot really get the dynamic in bluetooth device name
Connection password, that is, only knowing that the connection used when bluetooth equipment is attached sequence number and Dynamic link library password is advised
Terminal then can extract the Dynamic link library password for this connection, to set with bluetooth from bluetooth device name
It is standby to establish connection.
And know the target terminal of above-mentioned concatenate rule, it is the target terminal for having logged in target application, to reach this
The effect of sample has only logged in the terminal of target application, could be attached with bluetooth equipment.
From the foregoing, it will be observed that the above embodiments of the present application generate Dynamic link library password by bluetooth equipment, wherein connect every time
Dynamic link library password is different;The bluetooth of bluetooth equipment is generated according to the Dynamic link library password of the mark of bluetooth equipment and bluetooth equipment
Device name, and bluetooth device name is broadcasted, the bluetooth device name of bluetooth equipment is received by target terminal, and set from bluetooth
Dynamic link library password is obtained in standby title.Bluetooth equipment is that generate corresponding Dynamic link library close for connection every time in above scheme
Code solves to only have for a kind of bluetooth equipment of fixed password in compared with the existing technology, safety with higher
It is lower to carry out security performance when bluetooth connection for bluetooth equipment in the prior art;And the bluetooth equipment in the application is according to dynamically connecting
It connects password and mark generates bluetooth device name, so that terminal can automatically extract Dynamic link library from bluetooth device name
Password, compared with the existing technology in using dynamic password bluetooth equipment, eliminate user be manually entered at the terminal dynamic connect
The troublesome operation for connecing password improves the convenience for using.
As a kind of optional embodiment, bluetooth equipment is also used for symmetric key encryption Dynamic link library password, obtains
Encrypted message, and mark is connected with encrypted message, obtain bluetooth device name;Target terminal is also used to obtain master key, from
Mark is extracted in bluetooth device name, and key dispersion is carried out by master key and mark, and it is corresponding close to obtain bluetooth equipment
Key, target terminal obtain Dynamic link library password by key clear crytpographic key information.
In an alternative embodiment, by taking target application is bank APP as an example, user uses account on a target terminal
Bank APP is logged in, when needing using USBKey (such as wholesale transfer accounts etc. operation), in the client of bank APP, selection is needed
The bluetooth equipment to be connected, hence into the step of being attached with bluetooth equipment.
Target terminal gets the master key and concatenate rule stored in bank's APP server, and target terminal uses connection
Rule extracts the sequence number and encrypted message of bluetooth equipment from bluetooth device name, reuses sequence number and master key root
According to the key decentralized algorithm prestored, disperse the corresponding symmetric key of bluetooth equipment out, which is bluetooth equipment to dynamic
State connection password used symmetric key when encrypting.
Target terminal is decrypted encrypted message after dispersing symmetric key out, to obtain the dynamic for this connection
Connection password.
The Dynamic link library password decrypted is sent to bluetooth equipment by target terminal, and bluetooth equipment will be tested
Card information is compared with the Dynamic link library password of generation, if comparing successfully is to be proved to be successful, establishes this with target terminal
Secondary connection relationship, user can execute the operation such as transfer accounts by USBKey.
Embodiment 4
According to embodiments of the present invention, a kind of Bluetooth connection device for the Bluetooth connecting method in embodiment 1 is provided
Embodiment, Fig. 4 is a kind of schematic diagram for Bluetooth connection device according to the embodiment of the present application 4, as shown in connection with fig. 4, should
Device includes:
First generation module 40 generates Dynamic link library password for bluetooth equipment, wherein the Dynamic link library connected every time is close
Code is different.
Second generation module 42, it is close according to the mark of bluetooth equipment and the Dynamic link library of bluetooth equipment for bluetooth equipment
Code generates the bluetooth device name of bluetooth equipment according to preset concatenate rule.
Broadcast module 44 broadcasts bluetooth device name for bluetooth equipment.
Embodiment 5
According to embodiments of the present invention, a kind of Bluetooth connection device for the Bluetooth connecting method in embodiment 2 is provided
Embodiment, Fig. 5 is a kind of schematic diagram for Bluetooth connection device according to the embodiment of the present application 5, as shown in connection with fig. 5, should
Device includes:
Receiving module 50 receives the bluetooth device name of bluetooth equipment for target terminal, wherein bluetooth equipment is according to indigo plant
The mark of tooth equipment and the Dynamic link library password of bluetooth equipment generate the bluetooth equipment of bluetooth equipment according to preset concatenate rule
Title, the Dynamic link library password connected every time are different.
Module 52 is obtained, if having logged in target application for target terminal, obtains concatenate rule, and advise according to connection
Dynamic link library password is then obtained from bluetooth device name.
Embodiment 6
According to embodiments of the present invention, a kind of storage medium is provided, storage medium includes the program of storage, wherein in journey
Equipment where controlling storage medium when sort run executes the bluetooth appointed in Bluetooth connecting method or embodiment 2 in embodiment 1 and connects
Connect method.
Embodiment 7
According to embodiments of the present invention, a kind of processor is provided, processor is for running program, wherein when program is run
Execute the Bluetooth connecting method appointed in Bluetooth connecting method or embodiment 2 in embodiment 1.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (11)
1. a kind of Bluetooth connecting method characterized by comprising
Bluetooth equipment generates Dynamic link library password, wherein the Dynamic link library password connected every time is different;
The bluetooth equipment is according to the mark of the bluetooth equipment and the Dynamic link library password of the bluetooth equipment, according to preset
Concatenate rule generates the bluetooth device name of the bluetooth equipment;
The bluetooth equipment broadcasts the bluetooth device name.
2. the method according to claim 1, wherein bluetooth equipment generates Dynamic link library password, comprising:
When the bluetooth equipment detects broadcasting instructions, random number is generated;
Determine that the random number is the Dynamic link library password of this connection.
3. method according to claim 1 or 2, which is characterized in that the bluetooth equipment prestores corresponding symmetric key,
The bluetooth equipment is according to the mark of the bluetooth equipment and the Dynamic link library password of the bluetooth equipment, according to preset connection
Rule generates the bluetooth device name of the bluetooth equipment, comprising:
The bluetooth equipment obtains encrypted message using Dynamic link library password described in the symmetric key encryption;
The bluetooth equipment connects the mark with the encrypted message according to the preset concatenate rule, obtains the indigo plant
Tooth device name.
4. according to the method described in claim 3, it is characterized in that, the bluetooth equipment broadcast the bluetooth device name it
Afterwards, the method also includes:
The bluetooth equipment receives the verification information that target terminal is sent, wherein the target terminal for having logged in target application obtains
The concatenate rule and master key, extracted from the bluetooth device name according to the concatenate rule encrypted message and
The mark carries out key dispersion by the mark and the master key, obtains the symmetric key, using described symmetrical close
Key decrypts the encrypted message, obtains the verification information;
If be proved to be successful, the connection between the target terminal is established.
5. a kind of Bluetooth connecting method characterized by comprising
The bluetooth device name of target terminal reception bluetooth equipment, wherein the bluetooth equipment is according to the mark of the bluetooth equipment
Know the Dynamic link library password with the bluetooth equipment, the bluetooth equipment name of the bluetooth equipment is generated according to preset concatenate rule
Claim, the Dynamic link library password connected every time is different;
If the target terminal has logged in target application, the concatenate rule is obtained, and according to the concatenate rule from institute
State acquisition Dynamic link library password in bluetooth device name.
6. according to the method described in claim 5, it is characterized in that, the bluetooth equipment uses described in the symmetric key encryption
Dynamic link library password obtains encrypted message, then the mark is connected with the encrypted message according to preset concatenate rule, obtains
To the bluetooth device name, Dynamic link library password is obtained from the bluetooth device name according to the concatenate rule, comprising:
The target terminal logs in the target application;
The target terminal obtains master key;
The target terminal extracts the mark according to the concatenate rule from the bluetooth device name, and by described
Master key and the mark carry out key dispersion, obtain the corresponding key of the bluetooth equipment;
The target terminal decrypts the encrypted message by the key, obtains the Dynamic link library password.
If 7. according to the method described in claim 5, it is characterized in that, logged in target application in the target terminal,
The concatenate rule is obtained, and according to the concatenate rule after obtaining Dynamic link library password in the bluetooth device name,
The method also includes:
Using the Dynamic link library password as verification information, it is sent to the bluetooth equipment, wherein the bluetooth equipment is according to institute
Dynamic link library password is stated to verify the verification information;
If be proved to be successful, the connection between the bluetooth equipment is established.
8. a kind of bluetooth connection system characterized by comprising
Bluetooth equipment, bluetooth equipment generate Dynamic link library password, wherein the Dynamic link library password connected every time is different;According to institute
The mark of bluetooth equipment and the Dynamic link library password of the bluetooth equipment are stated, the bluetooth is generated according to preset concatenate rule and sets
Standby bluetooth device name, and broadcast the bluetooth device name.
Target terminal receives the bluetooth device name of bluetooth equipment, and acquisition Dynamic link library is close from the bluetooth device name
Code.
9. system according to claim 8, which is characterized in that
The bluetooth equipment is also used for Dynamic link library password described in the symmetric key encryption, obtains encrypted message, and will
The mark is connected with the encrypted message, obtains the bluetooth device name;
The target terminal is also used to obtain master key, and the mark is extracted from the bluetooth device name, and passes through institute
It states master key and the mark carries out key dispersion, obtain the corresponding key of the bluetooth equipment, the target terminal passes through institute
It states key and decrypts the encrypted message, obtain the Dynamic link library password.
10. a kind of Bluetooth connection device characterized by comprising
First generation module generates Dynamic link library password for bluetooth equipment, wherein the Dynamic link library password connected every time is not
Together;
Second generation module connects for the bluetooth equipment according to the mark of the bluetooth equipment and the dynamic of the bluetooth equipment
Password is connect, the bluetooth device name of the bluetooth equipment is generated according to preset concatenate rule;
Broadcast module broadcasts the bluetooth device name for the bluetooth equipment.
11. a kind of Bluetooth connection device characterized by comprising
Receiving module receives the bluetooth device name of bluetooth equipment for target terminal, wherein the bluetooth equipment is according to
The mark of bluetooth equipment and the Dynamic link library password of the bluetooth equipment generate the bluetooth equipment according to preset concatenate rule
Bluetooth device name, the Dynamic link library password connected every time is different;
It obtains module and obtains the concatenate rule, and according to described if having logged in target application for the target terminal
Concatenate rule obtains Dynamic link library password from the bluetooth device name.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810805717.1A CN109005541B (en) | 2018-07-20 | 2018-07-20 | bluetooth connection method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810805717.1A CN109005541B (en) | 2018-07-20 | 2018-07-20 | bluetooth connection method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109005541A true CN109005541A (en) | 2018-12-14 |
CN109005541B CN109005541B (en) | 2019-12-06 |
Family
ID=64597471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810805717.1A Active CN109005541B (en) | 2018-07-20 | 2018-07-20 | bluetooth connection method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109005541B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110351929A (en) * | 2019-07-17 | 2019-10-18 | 苏州佩林网络科技有限公司 | A kind of wireless lamp control system based on Bluetooth technology |
CN110730441A (en) * | 2019-10-18 | 2020-01-24 | 飞天诚信科技股份有限公司 | Bluetooth device and working method thereof |
CN111372206A (en) * | 2018-12-25 | 2020-07-03 | 上海辛格林纳新时达电机有限公司 | Communication method, system and equipment |
CN111867003A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Equipment network distribution method, device, equipment and computer readable storage medium |
CN112351414A (en) * | 2020-10-26 | 2021-02-09 | 北京达佳互联信息技术有限公司 | Equipment control method, device, system and storage medium |
CN113490142A (en) * | 2021-07-15 | 2021-10-08 | 重庆庄周科技有限责任公司 | Bluetooth positioning terminal, positioning method and following mobile device |
CN113825105A (en) * | 2021-09-26 | 2021-12-21 | 深圳市芯中芯科技有限公司 | Bluetooth broadcast-based one-to-many networking sound box control system and method |
CN114999031A (en) * | 2022-05-26 | 2022-09-02 | 重庆长安汽车股份有限公司 | Key management method for Bluetooth key safety vehicle control |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1781294A (en) * | 2003-04-28 | 2006-05-31 | Lm爱立信电话有限公司 | Security in a communications network |
CN102026187A (en) * | 2010-12-02 | 2011-04-20 | 大唐微电子技术有限公司 | Subscriber identification module and transmission method and system based on subscriber identification module |
US20150188891A1 (en) * | 2013-12-30 | 2015-07-02 | Vasco Data Security, Inc. | Authentication apparatus with a bluetooth interface |
CN104768235A (en) * | 2014-01-08 | 2015-07-08 | 中国移动通信集团公司 | Automatic connection method and device between equipment |
-
2018
- 2018-07-20 CN CN201810805717.1A patent/CN109005541B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1781294A (en) * | 2003-04-28 | 2006-05-31 | Lm爱立信电话有限公司 | Security in a communications network |
CN102026187A (en) * | 2010-12-02 | 2011-04-20 | 大唐微电子技术有限公司 | Subscriber identification module and transmission method and system based on subscriber identification module |
US20150188891A1 (en) * | 2013-12-30 | 2015-07-02 | Vasco Data Security, Inc. | Authentication apparatus with a bluetooth interface |
CN104768235A (en) * | 2014-01-08 | 2015-07-08 | 中国移动通信集团公司 | Automatic connection method and device between equipment |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111372206A (en) * | 2018-12-25 | 2020-07-03 | 上海辛格林纳新时达电机有限公司 | Communication method, system and equipment |
CN110351929A (en) * | 2019-07-17 | 2019-10-18 | 苏州佩林网络科技有限公司 | A kind of wireless lamp control system based on Bluetooth technology |
CN110730441A (en) * | 2019-10-18 | 2020-01-24 | 飞天诚信科技股份有限公司 | Bluetooth device and working method thereof |
CN111867003A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Equipment network distribution method, device, equipment and computer readable storage medium |
CN112351414A (en) * | 2020-10-26 | 2021-02-09 | 北京达佳互联信息技术有限公司 | Equipment control method, device, system and storage medium |
CN113490142A (en) * | 2021-07-15 | 2021-10-08 | 重庆庄周科技有限责任公司 | Bluetooth positioning terminal, positioning method and following mobile device |
CN113825105A (en) * | 2021-09-26 | 2021-12-21 | 深圳市芯中芯科技有限公司 | Bluetooth broadcast-based one-to-many networking sound box control system and method |
CN114999031A (en) * | 2022-05-26 | 2022-09-02 | 重庆长安汽车股份有限公司 | Key management method for Bluetooth key safety vehicle control |
Also Published As
Publication number | Publication date |
---|---|
CN109005541B (en) | 2019-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109005541A (en) | Bluetooth connecting method, device and system | |
CN106101147B (en) | A kind of method and system for realizing smart machine and the communication of remote terminal dynamic encryption | |
JP4639084B2 (en) | Encryption method and encryption apparatus for secure authentication | |
CN104735065B (en) | A kind of data processing method, electronic equipment and server | |
CN105007577B (en) | A kind of virtual SIM card parameter management method, mobile terminal and server | |
CN107040922A (en) | Wireless network connecting method, apparatus and system | |
CN109902494A (en) | Data encryption storage method, device and document storage system | |
CN106060078B (en) | User information encryption method, register method and verification method applied to cloud platform | |
CN105812334B (en) | A kind of method for network authorization | |
CN111131416A (en) | Business service providing method and device, storage medium and electronic device | |
CN103812651B (en) | Method of password authentication, apparatus and system | |
CN110381075B (en) | Block chain-based equipment identity authentication method and device | |
CN112543166B (en) | Real name login method and device | |
CN105142134B (en) | Parameter acquisition and parameter transmission method and device | |
CN104917807A (en) | Resource transfer method, apparatus and system | |
CN108809633A (en) | A kind of identity authentication method, apparatus and system | |
CN109981665A (en) | Resource provider method and device, resource access method and device and system | |
CN106899584A (en) | Management method and its device that a kind of hardware device is accessed | |
CN106130733A (en) | More newly configured methods, devices and systems | |
CN112291059B (en) | Key generation method and device, storage medium and electronic equipment | |
CN109272314A (en) | A kind of safety communicating method and system cooperateing with signature calculation based on two sides | |
CN105610872B (en) | Internet-of-things terminal encryption method and internet-of-things terminal encryption device | |
CN105554008B (en) | User terminal, certificate server, intermediate server, system and transfer approach | |
CN112615834A (en) | Security authentication method and system | |
CN103475474A (en) | Method for providing and acquiring shared enciphered data and identity authentication equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |