The authentication method and device of vehicle virtual key
Technical field
The present invention relates to automobile technical fields, more particularly, to the authentication method and device of vehicle virtual key.
Background technique
With the appearance of the virtual key of automobile, the sharing mechanism of key is graduallyd mature.The sharing of virtual key is broken through
Tradition machinery key, intelligent remote control key share authorize possessed by time and limitation spatially, also refined key point
The content for enjoying authorization increases some other practical and effective monitoring function.User can create empty in keyless situation
Quasi- key realizes mobile phone unlock and vehicle launch, shares code key and household, friend share the use of vehicle, synchronous intelligent mobile phone vapour
Car state is updated and is interacted.But existing virtual key safety is not high, is not sufficient to ensure that safety, the user of licensing process
The privacy of information.Customer data and service process are easy to be intercepted the risk with malicious operation, and vehicle is caused to use
Safety coefficient it is lower.
Summary of the invention
It is an object of the invention in view of the above problems in the prior art, provide a kind of authenticating party of vehicle virtual key
Method and device are for solving the deficiencies in the prior art.
Specifically, the embodiment of the invention provides a kind of authentication methods of vehicle virtual key, for sending out to mobile unit
Play certification, comprising:
Certification request information is sent to mobile unit;
It receives and the first verification solicited message returned after the certification request information is confirmed by the mobile unit;
After verification confirmation the first verification solicited message, session key is generated according to the first verification solicited message;
The second verification solicited message comprising the session key is generated, and sends the second verification solicited message to institute
State mobile unit;
Receive by the mobile unit confirm it is described second verification solicited message after return with authentication result information with
And the authentication response information of the session key.
As a further improvement of the above technical scheme, it receives by mobile unit confirmation the second verification request letter
After the authentication response information with authentication result information and the session key returned after breath further include:
Show the authentication result information and the session key.
As a further improvement of the above technical scheme, before transmission certification request information to mobile unit further include:
The virtual key is decrypted using preset transmission key;
The bluetooth exclusive identification code of mobile unit is obtained using the virtual key;
It searches for the corresponding mobile unit of the bluetooth exclusive identification code and establishes Bluetooth communication connection therewith.
As a further improvement of the above technical scheme, further includes:
The virtual key and transmission key are generated and/or stored beyond the clouds on server;
Downloading solicited message is sent to cloud server;
Receive the virtual key returned by cloud server and transmission key;
The virtual key and transmission key is being locally stored.
As a further improvement of the above technical scheme, the certification request information includes mobile terminal sequence number and vehicle-mounted
Equipment Serial Number;The first verification solicited message includes mobile unit sequence number and communication channel serial number;Second verification
Solicited message includes session key, mobile unit sequence number;The authentication response information includes session key, authentication result letter
Breath, mobile unit sequence number.
The embodiment of the invention also provides a kind of authentication devices of vehicle virtual key, for recognizing to mobile unit initiation
Card, comprising: information sending module, information receiving module and verification generation module;
The information sending module is for sending certification request information to mobile unit;
The information receiving module is used to receive for being confirmed by the mobile unit and being returned after the certification request information
One verification solicited message;
After the verification generation module is for verifying confirmation the first verification solicited message, asked according to first verification
It asks information to generate session key and generates the second verification solicited message comprising the session key;
The information sending module is also used to send the second verification solicited message to the mobile unit;
The information receiving module is also used to receive by returning after mobile unit confirmation the second verification solicited message
The authentication response information with authentication result information and the session key returned.
As a further improvement of the above technical scheme, further includes: display module, the display module are described for showing
Authentication result information and the session key.
As a further improvement of the above technical scheme, further includes: decryption obtains module;The decryption obtains module and is used for
The virtual key is decrypted using preset transmission key;The bluetooth unique identification of mobile unit is obtained using the virtual key
Code;
Communication building block;The communication building block is for searching for the corresponding mobile unit of the bluetooth exclusive identification code
Bluetooth communication connection is established therewith.
As a further improvement of the above technical scheme, further includes: memory module, the memory module are used for the letter
Breath receiving module receives the virtual key that cloud server returns and transmission key is locally stored.
As a further improvement of the above technical scheme, the certification request information include: mobile terminal sequence number, it is vehicle-mounted
Equipment Serial Number;The first verification solicited message includes: mobile unit sequence number, communication channel serial number;Second verification
Solicited message includes: session key, mobile unit sequence number;The authentication response information includes: session key, authentication result letter
Breath, mobile unit sequence number.
The embodiment of the invention also provides a kind of mobile terminal, including memory and processor, the memory is used for
Computer program is stored, the processor runs the computer program so that the above-mentioned vehicle virtual of the mobile terminal execution
The authentication method of key.
The embodiment of the invention also provides a kind of computer readable storage mediums, and being stored in above-mentioned mobile terminal makes
The computer program.
Using technical solution provided by the invention, compared with existing well-known technique, at least have the following beneficial effects: logical
It crosses and increases identifying procedure during obtaining code key, solve the problems, such as in car networking in virtual key generating process without certification,
Improve the safety coefficient that vehicle uses.High-quality car experience that is convenient, efficient, being integrated safely is made for user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the flow chart of the authentication method for the vehicle virtual key that one embodiment of the invention proposes;
Fig. 2 is the module diagram of the authentication device for the vehicle virtual key that one embodiment of the invention proposes.
Main element symbol description:
10- information sending module;20- information receiving module;30- verifies generation module;40- display module;50- decryption obtains
Modulus block;60- communication building block;70- memory module.
Specific embodiment
Hereinafter, the various embodiments of the disclosure will be described more fully.The disclosure can have various embodiments, and
It can adjust and change wherein.It should be understood, however, that: there is no disclosure protection scope is limited to specific reality disclosed herein
The intention of example is applied, but the disclosure should be interpreted as to all in the spirit and scope for covering the various embodiments for falling into the disclosure
Adjustment, equivalent and/or optinal plan.
Hereinafter, can the term " includes " used in the various embodiments of the disclosure or " may include " instruction disclosed in
Function, operation or the presence of element, and do not limit the increase of one or more functions, operation or element.In addition, such as existing
Used in the various embodiments of the disclosure, term " includes ", " having " and its cognate are meant only to indicate special characteristic, number
Word, step, operation, the combination of element, component or aforementioned item, and be understood not to exclude first one or more other
Feature, number, step, operation, element, component or aforementioned item combined presence or increase one or more features, number,
Step, operation, element, component or aforementioned item combination a possibility that.
In the various embodiments of the disclosure, statement " at least one of A or/and B " includes the text listed file names with
Any combination or all combinations.For example, statement " A or B " or " at least one of A or/and B " may include A, may include B or can
Including A and B both.
The statement (" first ", " second " etc.) used in the various embodiments of the disclosure can be modified in various implementations
Various constituent element in example, but respective sets can not be limited into element.For example, the above statement is not intended to limit the suitable of the element
Sequence and/or importance.The above statement is only used for the purpose for differentiating an element and other elements.For example, the first user fills
It sets and indicates different user device with second user device, although the two is all user apparatus.For example, not departing from each of the disclosure
In the case where the range of kind embodiment, first element is referred to alternatively as second element, and similarly, second element is also referred to as first
Element.
It should also be noted that if a constituent element ' attach ' to another constituent element by description, it can be by the first composition member
Part is directly connected to the second constituent element, and " connection " third can form between the first constituent element and the second constituent element
Element.On the contrary, when a constituent element " being directly connected to " is arrived another constituent element, it will be appreciated that in the first constituent element
And second third constituent element is not present between constituent element.
The term used in the various embodiments of the disclosure " user " can be indicated using the people of electronic device or using electricity
The device (for example, artificial intelligence electronic device) of sub-device.
The term used in the various embodiments of the disclosure is used only for the purpose of describing specific embodiments and not anticipates
In the various embodiments of the limitation disclosure.Unless otherwise defined, otherwise all terms used herein (including technical term and
Scientific term) there is contain identical with the various normally understood meanings of embodiment one skilled in the art of the disclosure
Justice.The term (term such as limited in the dictionary generally used) be to be interpreted as have in the related technical field
The identical meaning of situational meaning and Utopian meaning or meaning too formal will be interpreted as having, unless this
It is clearly defined in disclosed various embodiments.
Embodiment 1
As shown in Figure 1, being used for the embodiment of the invention provides a kind of authentication method of vehicle virtual key to mobile unit
Initiate certification, comprising:
S101, certification request information is sent to mobile unit.
It, will be in school team's certification request information after mobile unit receives the certification request information of user authentication terminal transmission
Whether information and the data that mobile unit locally saves are consistent, such as: it is the sequence number of user authentication terminal, phone number, vehicle-mounted
Equipment Serial Number etc..After confirming that data are consistent, mobile unit can send the first verification solicited message to user authentication terminal.
S102, reception confirm the first verification solicited message returned after the certification request information by the mobile unit.
User authentication terminal receives the first verification solicited message of mobile unit transmission.School team first is verified into request letter
Whether the information of breath and the data that user authentication terminal local saves are consistent.Such as: phone number, mobile unit sequence number, indigo plant
Tooth channel position, bluetooth exclusive identification code of mobile unit etc..
After S103, verification confirmation the first verification solicited message, session is generated according to the first verification solicited message
Key.
After confirming that data are consistent, user authentication terminal is locally generated session key.
S104, the second verification solicited message comprising the session key is generated, and sends the second verification request letter
It ceases to the mobile unit.
User authentication terminal can send the second verification solicited message with session key to mobile unit.
S105, reception confirm that the authentication result that has returned after the second verification solicited message is believed by the mobile unit
The authentication response information of breath and the session key.
After mobile unit receives the second verification solicited message of user authentication terminal transmission, school team second is verified and is requested
Whether information in information and the data that mobile unit locally saves are consistent, such as: phone number, mobile unit sequence number, vehicle
Carry the bluetooth exclusive identification code etc. of equipment.After confirming that data are consistent, mobile unit, which can send to have to user authentication terminal, to be recognized
Demonstrate,prove the authentication response information of result information and the session key.
What is returned after reception is confirmed the second verification solicited message by the mobile unit has authentication result information
And after the authentication response information of the session key further include:
Show that the authentication result information and the session key are checked for user.
User checks authentication result information and session key by the interface terminal app.
Before transmission certification request information to mobile unit further include:
The virtual key is decrypted using preset transmission key.
The bluetooth exclusive identification code of mobile unit is obtained using the virtual key.
It searches for the corresponding mobile unit of the bluetooth exclusive identification code and establishes Bluetooth communication connection therewith.
User authentication terminal needs to download virtual key and transmission key from cloud server first.For each certification
Terminal, cloud server can all provide different transmission key.To guarantee safety.
Virtual key and transmission key are generated and/or stored beyond the clouds on server.Under user authentication terminal is sent first
Solicited message is carried to cloud server;After cloud server receives the request, relevant data packet will be exported and give initiation request
User authentication terminal, user authentication terminal receives the virtual key that cloud server returns and transmission key is stored in this
Ground.This will just remain relevant data in user authentication terminal, and subsequent user does not need to download from cloud server again.
Certification request information includes: mobile terminal sequence number, mobile unit sequence number;First verification solicited message includes:
Mobile unit sequence number, communication channel serial number;Second verification solicited message includes: session key, mobile unit sequence number;Certification
Response message includes: session key, authentication result information, mobile unit sequence number.If using meanss of communication such as mobile phones to vehicle
It carries equipment and sends certification request information, the certification request information and the second verification solicited message are equal further include: phone number.When making
When with Bluetooth communication and vehicle equipment communication, the first verification solicited message, the second verification solicited message and authentication response information
It include the bluetooth exclusive identification code of mobile unit.
Embodiment 2
As shown in Fig. 2, being used for the embodiment of the invention provides a kind of authentication device of vehicle virtual key to mobile unit
Initiate certification, comprising: information sending module 10, information receiving module 20 and verification generation module 30.
Information sending module 10 is for sending certification request information to mobile unit.
Information receiving module 20, which is used to receive, confirms return after the certification request information first by the mobile unit
Verify solicited message.
After generation module 30 is verified for verifying confirmation the first verification solicited message, requested according to first verification
Information generates session key and generates the second verification solicited message comprising the session key.
Information sending module 10 is also used to send the second verification solicited message to the mobile unit.
Information receiving module 20 is also used to receive by returning after mobile unit confirmation the second verification solicited message
The authentication response information with authentication result information and the session key.
In the present embodiment, the authentication device of vehicle virtual key further include: display module 40, display module 40 is for showing
Show that the authentication result information and the session key are checked for user.
In the present embodiment, the authentication device of vehicle virtual key further include: decryption obtains module 50;Decryption obtains module
50 for decrypting the virtual key using preset transmission key;The bluetooth of mobile unit is obtained only using the virtual key
One identification code (Universally Unique Identifier, abbreviation UUID).
Communication building block 60;Communication building block 60 is for searching for the corresponding mobile unit of the bluetooth exclusive identification code
Bluetooth communication connection is established therewith.
In the present embodiment, the authentication device of vehicle virtual key further include: memory module 70, memory module 70 is used for will
Information receiving module 20 receives the virtual key that cloud server returns and transmission key is locally stored.
Certification request information includes: mobile terminal sequence number, mobile unit sequence number;First verification solicited message includes:
Mobile unit sequence number, communication channel serial number;Second verification solicited message includes: session key, mobile unit sequence number;Certification
Response message includes: session key, authentication result information, mobile unit sequence number.If using meanss of communication such as mobile phones to vehicle
It carries equipment and sends certification request information, the certification request information and the second verification solicited message are equal further include: phone number.When making
When with Bluetooth communication and vehicle equipment communication, the first verification solicited message, the second verification solicited message and authentication response information
It include the bluetooth exclusive identification code of mobile unit.
The embodiment of the invention also provides a kind of mobile terminal, including memory and processor, the memory is used for
Computer program is stored, the processor runs the computer program so that the above-mentioned vehicle virtual of the mobile terminal execution
The authentication method of key.
The embodiment of the invention also provides a kind of computer readable storage mediums, and being stored in above-mentioned mobile terminal makes
The computer program.
The present invention also provides a kind of mobile terminal, which may include smart phone, tablet computer etc..The shifting
Dynamic terminal includes memory and processor, and memory can be used for storing computer program, and processor is by running the computer
Program, to make the authentication method of the above-mentioned vehicle virtual key of mobile terminal execution or the certification dress of above-mentioned vehicle virtual key
The function of modules in setting.
Memory may include storing program area and storage data area, wherein storing program area can storage program area, at least
Application program needed for one function;Storage data area, which can be stored, uses created data (such as sound according to mobile terminal
Frequency evidence, phone directory etc.) etc..In addition, memory may include high-speed random access memory, it can also include non-volatile deposit
Reservoir, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
The present invention also provides a kind of computer storage mediums, for storing the calculating used in above-mentioned mobile terminal
Machine program.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and structure in attached drawing
Figure shows the system frame in the cards of the device of multiple embodiments according to the present invention, method and computer program product
Structure, function and operation.In this regard, each box in flowchart or block diagram can represent a module, section or code
A part, a part of the module, section or code includes one or more for implementing the specified logical function
Executable instruction.
It should also be noted that function marked in the box can also be attached to be different from the implementation as replacement
The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used
To execute in the opposite order, this depends on the function involved.It is also noted that every in structure chart and/or flow chart
The combination of a box and the box in structure chart and/or flow chart, can function or movement as defined in executing it is dedicated
Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention can integrate one independence of formation together
Part, be also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be intelligence
Can mobile phone, 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 include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory),
Random access memory (RAM, Random Access Memory), magnetic or disk etc. be various to can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.