CN114999029A - Vehicle unlocking method and system - Google Patents

Vehicle unlocking method and system Download PDF

Info

Publication number
CN114999029A
CN114999029A CN202210573973.9A CN202210573973A CN114999029A CN 114999029 A CN114999029 A CN 114999029A CN 202210573973 A CN202210573973 A CN 202210573973A CN 114999029 A CN114999029 A CN 114999029A
Authority
CN
China
Prior art keywords
vehicle
unlocking
mobile terminal
request message
mounted terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210573973.9A
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202210573973.9A priority Critical patent/CN114999029A/en
Publication of CN114999029A publication Critical patent/CN114999029A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/041Key generation or derivation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The specification discloses a vehicle unlocking method and a vehicle unlocking system, wherein a mobile terminal and a vehicle-mounted terminal initialize a current interaction key K0 in advance, and respectively store the value of K0 locally to obtain K0m and K0 c; the unlocking method comprises the following steps: after the mobile terminal determines the unlocking requirement, generating a next interactive key K1; the mobile terminal generates an unlocking request message and sends the unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 with K0 m; after receiving the unlocking request message, the vehicle-mounted terminal decrypts the request message by using locally stored K0 c; if the decryption is successful, unlocking the vehicle and updating the value of the locally stored K0c by using the decrypted result; and after the mobile terminal determines that the vehicle is successfully unlocked, updating the value of the locally saved K0m by using the locally generated K1.

Description

Vehicle unlocking method and system
Technical Field
The specification relates to the technical field of data security, in particular to a vehicle unlocking method and system.
Background
With the development of the internet of vehicles, technologies for controlling vehicles by using a mobile terminal have been developed to some extent, for example, unlocking and starting of vehicles by using the mobile terminal are realized, so that the dependence of people on an entity key is reduced.
At present, a method for controlling unlocking of a vehicle based on a mobile terminal comprises the following steps: the mobile terminal and the vehicle-mounted terminal in the vehicle store fixed secret keys, the vehicle-mounted terminal decrypts the encrypted unlocking instruction sent by the mobile terminal based on the fixed secret keys, and the vehicle is unlocked after decryption is successful. If the stolen owner of the fixed key sniffs the fixed key through the network, the stolen owner can unlock the vehicle based on the sniffed fixed key. Therefore, in the prior art, a certain potential safety hazard exists in an unlocking mode of controlling a vehicle based on a mobile terminal.
Disclosure of Invention
In view of the above technical problems, the present specification provides a vehicle unlocking method and system, and the technical scheme is as follows:
according to a first aspect of the present description, a vehicle unlocking method is provided, in which a mobile terminal and a vehicle-mounted terminal respectively store a current interaction key K0, and obtain K0m and K0 c; the unlocking method comprises the following steps:
after the mobile terminal determines the unlocking requirement, generating a next interactive key K1;
the mobile terminal sends an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of symmetric encryption of K1 with K0 m;
the vehicle-mounted terminal decrypts the encrypted result in the unlocking request message by using K0 c;
if the decryption is successful, unlocking the vehicle, and updating the value of the locally stored K0c by using the decrypted K1;
and after the mobile terminal determines that the vehicle is successfully unlocked, updating the value of the locally saved K0m by using the locally generated K1.
According to a second aspect of the present specification, there is provided a vehicle unlocking system, the unlocking system including a mobile terminal and a vehicle-mounted terminal, the mobile terminal and the vehicle-mounted terminal respectively storing a current interaction key K0, obtaining K0m and K0 c;
the mobile terminal is used for generating a next interactive key K1 after the unlocking requirement is determined; sending an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of symmetric encryption of K1 with K0 m;
the vehicle-mounted terminal is used for decrypting an encrypted result in the unlocking request message by using locally stored K0c after receiving the unlocking request message; if the decryption is successful, unlocking the vehicle, and updating the value of the locally stored K0c by using the decrypted K1;
and the mobile terminal is also used for updating the value of the locally stored K0m by using the locally generated K1 after the vehicle is successfully unlocked.
According to a third aspect of the present specification, another vehicle unlocking method is provided, in which a mobile terminal and a vehicle-mounted terminal respectively store a current interaction key K0 and a serial number corresponding thereto to obtain K0m and K0c, and different values of K0 respectively correspond to different serial numbers; the unlocking method comprises the following steps:
the vehicle-mounted terminal determines a serial number corresponding to K0c, and carries the serial number in a wireless signal for broadcasting;
after detecting a wireless signal broadcast by a vehicle-mounted terminal, the mobile terminal acquires a serial number from the wireless signal, and determines K0m according to the acquired serial number;
after the mobile terminal determines the unlocking requirement, generating and storing a next interactive key K1 and a corresponding serial number thereof;
the mobile terminal sends an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries the following components: the result of symmetric encryption of K1 and the serial number thereof by K0 m;
after receiving the unlocking request message, the vehicle-mounted terminal decrypts the encrypted result in the unlocking request message by using K0 c;
if the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update K0c and its serial number.
According to a fourth aspect of the present specification, another vehicle unlocking system is provided, where the unlocking system includes a mobile terminal and a vehicle-mounted terminal, where the mobile terminal and the vehicle-mounted terminal respectively store a current interaction key K0 and a serial number corresponding to the current interaction key K0 to obtain K0m and K0c, and different values of K0 respectively correspond to different serial numbers;
the vehicle-mounted terminal is used for determining a serial number corresponding to K0c and carrying the serial number in a wireless signal for broadcasting;
the mobile terminal is used for acquiring a serial number from a wireless signal after the wireless signal broadcasted by the vehicle-mounted terminal is detected, and determining K0m according to the acquired serial number;
after the unlocking requirement is determined, generating and storing a next interactive key K1 and a corresponding serial number thereof;
sending an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of symmetric encryption of K1 and the serial number thereof by K0 m;
the vehicle-mounted terminal is further used for decrypting an encrypted result in the unlocking request message by using K0c after receiving the unlocking request message;
if the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update K0c and its serial number.
According to the technical scheme provided by the implementation mode of the specification, after the unlocking requirement of the user is determined, the mobile terminal can generate the next interactive secret key, the next interactive secret key is encrypted by the current interactive secret key and added into the unlocking request, the vehicle-mounted terminal can decrypt the unlocking request based on the locally stored current interactive secret key after receiving the unlocking request, the vehicle is unlocked when the decryption is successful, the current interactive secret key is modified into the next interactive secret key, and the local current interactive secret key is updated after the mobile terminal determines that the vehicle is successfully unlocked. Therefore, the mobile terminal and the vehicle-mounted terminal can use one interactive key in the unlocking process at one time, the interactive keys used in the unlocking process at each time are different, and the safety of the vehicle unlocking process is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
In addition, it is not necessary for any of the embodiments in the present specification to achieve all of the effects described above.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in the embodiments of the present specification, and other drawings may be obtained by those skilled in the art according to these drawings.
Fig. 1 is an interaction diagram of a first vehicle unlocking method according to an embodiment of the present disclosure;
FIG. 2 is an interactive schematic diagram of a second vehicle unlocking method according to an embodiment of the present disclosure;
FIG. 3 is an interactive schematic diagram of a third vehicle unlocking method according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a first vehicle unlocking device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural view of a second vehicle unlocking device according to the embodiment of the present specification;
FIG. 6 is a schematic structural view of a third vehicle unlocking device according to the embodiment of the present disclosure;
FIG. 7 is a schematic structural view of a fourth vehicle unlocking device according to the embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an apparatus for configuring a device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions in the embodiments of the present disclosure better understood by those skilled in the art, the technical solutions in the embodiments of the present disclosure will be described in detail below with reference to the drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only a part of the embodiments of the present disclosure, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification should be within the scope of protection.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if," as used herein, may be interpreted as "at … …" or "when … …" or "in response to a determination," depending on the context.
With the development of the internet of vehicles, technologies for controlling vehicles by using mobile terminals have been developed to some extent, for example, unlocking and starting of vehicles are controlled by using mobile terminals, so that the dependence of people on physical keys is reduced.
At present, a method for controlling unlocking of a vehicle based on a mobile terminal comprises the following steps: the mobile terminal and the vehicle-mounted terminal in the vehicle store fixed secret keys, the mobile terminal and the vehicle-mounted terminal are connected based on a wireless mode such as Bluetooth, the vehicle-mounted terminal uses the fixed secret keys to decrypt an encrypted unlocking instruction sent by the mobile terminal, and the vehicle is unlocked after decryption is successful. For example, the mobile terminal and the vehicle-mounted terminal both store a fixed key P1, the mobile terminal encrypts an unlocking request by using P1 and then transmits the unlocking request to the vehicle-mounted terminal, the vehicle-mounted terminal decrypts by using locally stored P1, and if the unlocking is successful, the vehicle is unlocked.
If the thief sniffs the fixed key P1 via the network, the thief can unlock the vehicle based on the sniffed fixed key. Therefore, a certain potential safety hazard exists in the unlocking mode of controlling the vehicle based on the mobile terminal at present.
In view of the above problems, the present specification proposes:
the mobile terminal and the vehicle-mounted terminal initialize the current interactive key in advance, store the current interactive key in the local of both sides, and update the current interactive key after each successful unlocking, namely, one key is used for one time of unlocking, and the keys used for each unlocking are different. Thereby improving the safety of vehicle unlocking.
Some specific concepts involved in the solution of the present specification are explained below:
in the embodiments of the present specification, the in-vehicle terminal refers to a terminal device that is mounted on a vehicle, can control the vehicle to unlock, and can receive and transmit a message.
The vehicle in the embodiments of the present specification may be any type of automotive vehicle or non-automotive vehicle mounted with a vehicle-mounted terminal, such as a fuel automobile, a new energy automobile, a motorcycle, an electric bicycle, a bicycle, and the like, and the present specification does not limit this.
In this specification, K0 denotes the current mutual key used by the mobile terminal and the in-vehicle terminal recorded locally, and in order to distinguish the current mutual key recorded by the mobile terminal and the in-vehicle terminal, K0m denotes the current mutual key (m denotes mobile) recorded locally by the mobile terminal, and K0c denotes the current mutual key (c denotes car) recorded locally by the in-vehicle terminal. In addition, since the description mainly refers to the currently used interaction key K0 and the interaction key used next time, K1 is introduced to represent the interaction key used for next unlocking.
It should be noted that K1, K0m, and K0c are not specific and fixed values in this specification, the value of K1 is automatically updated each time a new round of keys is generated, and the values of K0m and K0c are updated each time the unlocking is successful, that is, the values of K0m and K0c are updated to the value of the next interaction key K1 after the unlocking is successful.
Based on the description provided above, the present specification provides a vehicle unlocking scheme as follows: when a user uses the mobile terminal to control a vehicle for the first time, the mobile terminal can be bound with a vehicle-mounted terminal in the vehicle, the mobile terminal and the vehicle terminal are connected based on Bluetooth or other wireless modes, after the connection is established, the mobile terminal and the vehicle-mounted terminal initialize a current interaction key K0, and the values of K0 are stored locally to obtain K0m and K0 c;
the specific technical scheme provided by the implementation mode of the specification is as follows:
s101: after the mobile terminal determines the unlocking requirement, generating a next interactive key K1;
when the user needs to unlock, the corresponding application program in the mobile terminal can be opened, and the unlocking operation is performed in the application program through the corresponding operation interface.
The mobile terminal determines that the unlocking requirement exists after detecting the corresponding operation of the user.
In addition, a non-inductive unlocking mechanism can be adopted, namely, the unlocking requirement is determined to exist when the fact that the user stays for the preset time length within the preset distance around the vehicle is detected.
The present description is not limited as to how the unlocking requirement is determined to exist.
After determining that the unlocking requirement exists, the mobile terminal may generate the interaction key K1 based on a preset algorithm, where K1 is necessarily different from the value of K0m, that is, the value of the next interaction key K1 generated by the mobile terminal according to the preset algorithm is necessarily different from the value of the currently used interaction key K0m stored locally. For example, the current interaction key K0m has a value of AAA and the next interaction key K1 has a value of BBB, where BBB is not equal to AAA.
S102, the mobile terminal generates an unlocking request message and sends the unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries the following components: the result of encrypting K1 with K0 m;
after the next interaction key K1 is generated, the mobile terminal encrypts the next interaction key K1 by using the current interaction key K0m, and adds the encrypted result to an unlocking request and sends the unlocking request to the vehicle-mounted terminal, wherein the unlocking request also comprises an unlocking instruction encrypted based on K0 m.
S103, after receiving the unlocking request message, the vehicle-mounted terminal decrypts the request message by using locally stored K0 c;
after receiving the unlocking request, the vehicle-mounted terminal can decrypt the request message by using locally stored K0 c; with reference to the above example in S101, for example, if the value of K0c stored in the in-vehicle terminal is the same as the value of K0m stored in the mobile terminal and both are AAA, the in-vehicle terminal can decrypt the request message using locally stored K0c, and if the decryption is successful, the BBB, which is the value of K1, can be obtained.
S104, if the decryption is successful, unlocking the vehicle and updating the value of the locally stored K0c by using the decrypted result;
if the decryption is successful, the vehicle-mounted terminal can also determine that the identity of the mobile terminal passes the verification, and then an unlocking instruction is sent to the vehicle to unlock the vehicle. After the vehicle is successfully unlocked, the vehicle-mounted terminal updates the value of the current interaction key K0c stored locally to the value of K1, namely, the value of K0c is updated to BBB by AAA.
And S105, after the mobile terminal determines that the vehicle is successfully unlocked, updating the value of the locally stored K0m by using the locally generated K1.
The mobile terminal determines whether the unlocking of the vehicle is successful or not, and can determine by receiving a message returned by the vehicle-mounted terminal. Namely, the mobile terminal can determine that the unlocking is successful after receiving an unlocking success message returned by the vehicle-mounted terminal; and after receiving an unlocking failure message returned by the vehicle-mounted terminal, determining that the unlocking is failed.
Of course, the unlocking success may also be determined when the unlocking failure message is not received within the preset time. The present embodiment is not limited to this.
After the mobile terminal determines that the vehicle is successfully unlocked, the value of K0m stored locally needs to be updated to the value of K1, that is, the value AAA of K0m needs to be updated to BBB, so as to keep synchronization with the current key of the vehicle-mounted terminal for the next unlocking process.
Therefore, the vehicle unlocking scheme can ensure that the mobile terminal and the vehicle-mounted terminal can use one interactive key in one unlocking process, and the interactive keys used in the unlocking process are different every time, so that the safety of the vehicle unlocking process is improved.
Since the mobile terminal and the in-vehicle terminal adopt wireless connection, the wireless connection may be disconnected, or the wireless channel may be occupied, so that the two parties may not receive the message sent by the other party.
As shown in fig. 2, when the mobile terminal determines that the unlocking of the vehicle is successful, the method includes: when the unlocking success is determined after the unlocking success message returned by the vehicle-mounted terminal is received, the mobile terminal cannot know whether the vehicle is successfully unlocked or not and even whether the opposite side has received the unlocking request message or not when the mobile terminal does not receive the message returned by the vehicle-mounted terminal, and at this moment, the local K0m cannot be updated.
Therefore, when the unlocking success message is not received within the preset time length of the mobile terminal, the same unlocking request is sent to the vehicle-mounted terminal again.
With reference to the foregoing example, when the mobile terminal does not receive the unlocking success message within the preset time duration, it needs to send an unlocking request including a result of encrypting the BBB by the AAA to the vehicle-mounted terminal again. Therefore, the unlocking request can be ensured to occur again under the condition that the user does not feel, and the unlocking of the vehicle is completed under the condition that the user does not need to operate.
Considering that the mobile terminal and the vehicle-mounted terminal use a new interaction key in each unlocking process, in order to maintain data information, the mobile terminal can locally store a history record of K0m values, wherein the history record records K0m from an initial value to a current value, and the use time of each value can also be recorded in the history record. Similarly, the in-vehicle terminal may locally store a history of the K0c value.
For example, a history of K0m values may be as shown in Table 1:
k0m value Time
AAA 2020.1.1/08:00-2020.1.1/18:00
BBB 2020.1.1/18:00-2020.1.2/08:00
ZZZ 2020.3.7/08: 00-current time
TABLE 1
In table 1, it can be seen that by recording the history of the value of K0m locally stored by the mobile terminal, it can be determined which interaction keys have been used for unlocking, and the sequence of using the interaction keys can also be determined by the recorded time. For example, by looking at this history, it can be determined that the value of K0m is at 2020.1.1/08: 00-2020.1.1/18: 00K0m is AAA, the value of K0m is 2020.3.7/08: 00-current time is BBB. Similarly, the in-vehicle terminal may locally store the same entry for recording the history of K0 c.
For example, in combination with the above-mentioned example in S104, after the vehicle is successfully unlocked, the in-vehicle terminal updates the value of the current interaction key K0c stored locally to the value of K1, that is, the value of K0c is updated from AAA to BBB, and the mobile terminal determines that the unlocking is successful after receiving an unlocking success message returned by the in-vehicle terminal, and if the mobile terminal does not receive an unlocking success message sent by the in-vehicle terminal due to a network reason, the value of K0m stored locally is not updated from AAA to BBB, at this time, the value of K0c recorded by the in-vehicle terminal is BBB, and the value of K0m in the in-vehicle terminal is AAA, and the current interaction keys recorded by both of the two terminals are not the same. In this case, if the mobile terminal sends the unlocking request to the in-vehicle terminal again, the BBB is encrypted by AAA in the unlocking request, and after receiving the unlocking request, the in-vehicle terminal cannot decrypt the unlocking request because the locally stored K0c is BBB, and at this time, a message of unlocking failure is sent to the mobile terminal, and the mobile terminal determines that the unlocking failure occurs after receiving the message of unlocking failure.
Considering the condition that the current interaction keys stored by the mobile terminal and the vehicle-mounted terminal are not synchronous due to various reasons, the mobile terminal can send the history record of the locally stored K0m value to the vehicle-mounted terminal under the condition that the unlocking is determined to fail; and the vehicle-mounted terminal determines to unlock the vehicle according to the received history of the K0m values and the history of the locally stored K0c values.
In an embodiment, the vehicle-mounted terminal may obtain all history records from the history records of the value K0m according to a preset unlocking policy, and match the obtained all history records with the history records of the value K0c stored locally, if it is determined in the matching result that only the current values recorded by the two parties are different and all the other values are the same, the vehicle is unlocked, or it may be determined that the mobile terminal passes the authentication and the vehicle is unlocked when it is determined that the successfully matched entry exceeds a preset ratio, for example, 90%. In addition, considering that the history records have too many history record entries and the matching time is long, the unlocking strategy may be set to acquire and match approximately 10 or 20 history records, and the specifically acquired entries may be set according to actual needs, which is not limited in this specification. Of course, if the latter method is adopted, and only a part of the history records are obtained and matched as the unlocking strategy, the mobile terminal may send only the history records of the corresponding entries in the history records of the locally stored K0m value to the vehicle-mounted terminal, instead of sending all the history records to the vehicle-mounted terminal, when determining that the unlocking is failed, so as to save the transmission time.
In addition, in the case where the in-vehicle terminal determines to unlock the vehicle by matching the history of the K0m value with the history of the K0c value held locally and after the matching is successful. The vehicle-mounted terminal can also send an interactive key synchronization message to the mobile terminal after unlocking the vehicle, and the mobile terminal synchronously interacts the key with the vehicle-mounted terminal after receiving the interactive key synchronization message. The synchronization key may be an initialization key, i.e. deleting the original data stored in the history of the local interaction key, or may be synchronized based on the original record.
Therefore, under the condition that the user does not need to perform redundant operation, the vehicle-mounted terminal and the mobile terminal can automatically and synchronously interact the secret key, the next unlocking can be smoothly executed, and the user experience is improved.
In order to more clearly illustrate one vehicle unlocking solution shown in fig. 1 of the present specification, the following describes the method performed from a single-sided perspective:
for a mobile terminal, the tasks that need to be performed are mainly as follows:
after the unlocking requirement is determined, generating a next interaction key K1;
generating an unlocking request message, and sending the unlocking request message to a vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 with K0 m;
after the vehicle unlocking is determined to be successful, the locally saved value of K0m is updated with the locally generated K1.
For the vehicle-mounted terminal, the main tasks that need to be performed are as follows:
after receiving an unlocking request message sent by the mobile terminal, decrypting the request message by using locally stored K0 c; wherein the request message at least carries: the result of encrypting K1 with K0 m;
if the decryption is successful, the vehicle is unlocked and the locally stored value of K0c is updated with the decrypted result.
As shown in fig. 3, in an embodiment provided in this specification, in order to ensure that the mobile terminal and the vehicle-mounted terminal do not have current interaction keys that are not synchronized due to network reasons, a serial number mechanism is introduced in the interaction process.
As shown in table 2, each interactive key corresponds to a different serial number, and it is understood that the representation of the serial numbers by Q1 and Q1 … Qn in this specification is only for the purpose of clearly explaining the present solution, and the representation method of the serial numbers in practical applications may adopt a more complex representation form.
K0 Serial number
AAA Q1
BBB Q2
ZZZ Qn
TABLE 2
The mobile terminal and the vehicle-mounted terminal initialize the current interactive key K0 and the corresponding serial number in advance, and locally store K0 and the corresponding serial number respectively, and different K0 values respectively correspond to different serial numbers; in combination with the contents in table 2, for example, K0 is initialized, and K0 and the serial numbers thereof stored locally by the mobile terminal and the vehicle-mounted terminal are Q1-AAA, where AAA is the value of initialized K0, and Q1 is the serial number corresponding to AAA. The specific unlocking method comprises the following steps:
s301, the vehicle-mounted terminal determines a serial number corresponding to K0c, and the serial number is carried in a wireless signal for broadcasting;
in the case that the in-vehicle terminal determines the value of the current mutual key K0c locally saved, the in-vehicle terminal may determine the sequence number corresponding to the value of the current mutual key K0c, as shown in table 3, for example, if the in-vehicle terminal determines that the value of the current mutual key K0c is the sequence number Q1 corresponding to AAA, the in-vehicle terminal adds the sequence number Q1 to the wireless signal and broadcasts the wireless signal.
K0c Serial number
AAA Q1
TABLE 3
S302, after detecting a wireless signal broadcast by a vehicle-mounted terminal, the mobile terminal acquires a serial number from the wireless signal, and determines K0m according to the acquired serial number;
the mobile terminal can establish connection with the vehicle-mounted terminal when entering the broadcast range of the vehicle-mounted terminal, can acquire the serial number Q1 therein after the connection is successful, and can determine the value of the current interaction key K0m from a plurality of values locally stored according to the serial number Q1, in combination with the example in table 2, the mobile terminal can determine the current interaction key to be used at this time from a plurality of interaction keys locally stored, that is, determine the value of the current interaction key K0m to be AAA according to the serial number Q1.
S303, after the mobile terminal determines the unlocking requirement, generating and storing a next interactive key K1 and a corresponding serial number thereof;
after determining the unlocking requirement, how to determine the unlocking requirement by the mobile terminal may refer to the description in S101, which is not described herein again. Unlike S101, the mobile terminal generates the next-time interaction key K1 and also generates a serial number corresponding to K1. Wherein a predetermined algorithm is used to make different serial numbers correspond to different values of K0. For example, the generated value of K1 is BBB, and the sequence number corresponding to BBB is sequence number Q2 different from sequence number Q1. The generated K1 and its sequence number are stored locally.
S304, the mobile terminal generates an unlocking request message and sends the unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m;
unlike S102, the mobile terminal needs to encrypt K1 and its serial number using K0m and add them to the unlock request message, and, in conjunction with the example in the previous step, encrypt BBB and Q2 using AAA and add them to the unlock request.
S305, after receiving the unlocking request message, the vehicle-mounted terminal decrypts the request message by using K0 c;
after receiving the unlocking request message, the vehicle-mounted terminal may decrypt the unlocking request message by using the locally stored value of K0c, that is, AAA.
S306, if the decryption is successful, the vehicle is unlocked, and the K0c and the serial number thereof are updated by using the decrypted result.
If the decryption is successful, the in-vehicle terminal unlocks the vehicle, and unlike S104, the serial number of K0c needs to be updated. In connection with the example in the previous step, if the decryption is successful, the value AAA of K0c and the sequence number Q1 thereof are updated to BBB and Q2, and the updated value K0c and the sequence number thereof are shown in table 4. After the update is completed, the vehicle-mounted terminal can add Q2 to the wireless signal for broadcasting.
K0c Serial number
BBB Q2
TABLE 4
By adopting the vehicle unlocking scheme shown in fig. 3, the value of K0m does not need to be updated in real time on the mobile terminal side, and the current interactive key of the vehicle-mounted terminal is determined after the mobile terminal receives the serial number in the vehicle-mounted terminal broadcast, so that the serial number mechanism is introduced to ensure that the mobile terminal and the vehicle-mounted terminal can completely synchronize the current interactive key. Therefore, the mobile terminal and the vehicle-mounted terminal can use one interactive key in the unlocking process at one time, the interactive keys used in the unlocking process at each time are different, and the safety of the vehicle unlocking process is improved.
In one embodiment, after the vehicle is unlocked, the vehicle-mounted terminal sends an unlocking success message to the mobile terminal, and the mobile terminal receives the unlocking success message to determine that the unlocking is successful.
Under the condition that the mobile terminal does not receive the unlocking success message within the preset time length, in order to determine whether the vehicle-mounted terminal has completed unlocking, whether a serial number in a wireless signal broadcast by the vehicle-mounted terminal is a serial number of K1 or not can be judged; with reference to the example in S306, in a case that the unlocking success message is not received within the preset time period of the mobile terminal, it may be determined whether the serial number in the wireless signal broadcast by the vehicle-mounted terminal has been changed to Q2, and if yes, it indicates that the decryption and the unlocking have been successful and have been updated, and the unlocking success message is not received, which may be that the unlocking success message is not successfully sent due to a network reason. Therefore, the success of unlocking can be directly determined without reoccurrence of the unlocking request after the fact that the serial number in the wireless signal broadcasted by the vehicle-mounted terminal is changed into Q2.
If it is determined that the serial number in the wireless signal broadcast by the vehicle-mounted terminal is not updated to Q2 or Q1, it may be determined that the vehicle-mounted terminal has not successfully unlocked, and meanwhile, the message that the unlocking fails is not received, which may be caused by the unsuccessfully transmitted unlocking request, so the unlocking request including BBB and Q2 encrypted by AAA may be transmitted again to complete the unlocking procedure.
Therefore, the scheme of the embodiment can judge whether the unlocking request needs to be sent again to complete the unlocking process according to the serial number mechanism without the participation of the user.
Similarly, in the case that the current interaction keys stored in the mobile terminal and the vehicle-mounted terminal are not synchronized due to equipment failure, for example, the current interaction keys of the mobile terminal and the vehicle-mounted terminal are not synchronized due to a storage error occurring when the vehicle-mounted terminal stores the corresponding relationship between the keys and the serial numbers. The key and serial number in the in-vehicle terminal and the mobile terminal can be automatically synchronized by adopting the synchronization method in the unlocking scheme shown in fig. 1.
In order to more clearly illustrate the vehicle unlocking scheme shown in fig. 3 of the present specification, the following describes the executed method from a single-sided perspective:
for a mobile terminal, the tasks that need to be performed are mainly as follows:
after a wireless signal broadcasted by the vehicle-mounted terminal is detected, acquiring a serial number from the wireless signal, and determining K0m according to the acquired serial number;
after the unlocking requirement is determined, generating and storing a next interactive key K1 and a corresponding serial number thereof;
generating an unlocking request message, and sending the unlocking request message to a vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m.
For the vehicle-mounted terminal, the main tasks that need to be performed are as follows:
determining a serial number corresponding to K0c, and carrying the serial number in a wireless signal for broadcasting;
after receiving an unlocking request message sent by the mobile terminal, decrypting the request message by using K0 c; wherein the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m;
if the decryption is successful, the vehicle is unlocked and the K0c and its serial number are updated with the decrypted result.
Corresponding to one of the vehicle unlocking methods shown in the foregoing fig. 1, the present specification further provides a vehicle unlocking system, where the unlocking system includes a mobile terminal and a vehicle-mounted terminal, and the mobile terminal and the vehicle-mounted terminal initialize the current interaction key K0 in advance and save the value of K0 locally to obtain K0m and K0c, respectively;
the mobile terminal is used for generating a next interactive key K1 after the unlocking requirement is determined;
generating an unlocking request message, and sending the unlocking request message to a vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 with K0 m;
the vehicle-mounted terminal is used for decrypting the request message by using locally stored K0c after receiving the unlocking request message;
if the decryption is successful, unlocking the vehicle and updating the value of the locally stored K0c by using the decrypted result;
and the mobile terminal is further used for updating the value of the locally stored K0m by using the locally generated K1 after the vehicle is determined to be successfully unlocked.
As shown in fig. 4, corresponding to one of the vehicle unlocking methods shown in the foregoing fig. 1, the present specification also provides a vehicle unlocking apparatus, which is applied to a mobile terminal that initializes the current interaction key K0 with the in-vehicle terminal in advance and stores the values of K0 locally, resulting in K0m and K0c, respectively; the unlocking device includes:
the key generation module 410 is used for generating a next interaction key K1 after the unlocking requirement is determined;
a sending module 420, configured to generate an unlocking request message, and send the unlocking request message to a vehicle-mounted terminal, where the unlocking request message at least carries: the result of encrypting K1 with K0 m;
and the updating module 430 is used for updating the locally saved value of K0m by using the locally generated K1 after the vehicle unlocking is determined to be successful.
As shown in fig. 5, corresponding to one of the vehicle unlocking methods shown in the foregoing fig. 1, the present specification also provides another vehicle unlocking apparatus, which is applied to a vehicle-mounted terminal, and a mobile terminal and the vehicle-mounted terminal initialize the current interaction key K0 in advance and save the value of K0 locally, respectively, to obtain K0m and K0 c; the unlocking device includes:
the receiving module 510 is configured to decrypt, after receiving the unlocking request message sent by the mobile terminal, the request message by using locally stored K0 c; wherein the request message at least carries: the result of encrypting K1 with K0 m;
and the unlocking module 520 is used for unlocking the vehicle and updating the value of the locally stored K0c by using the decrypted result under the condition that the decryption is successful.
Corresponding to the vehicle unlocking method shown in fig. 3, the present specification further provides another vehicle unlocking system, where the unlocking system includes a mobile terminal and a vehicle-mounted terminal, where the mobile terminal and the vehicle-mounted terminal initialize a current interaction key K0 and a serial number corresponding to the current interaction key in advance, and store K0 and a serial number corresponding to the current interaction key in local, and different values of K0 respectively correspond to different serial numbers;
the vehicle-mounted terminal is used for determining a serial number corresponding to K0c and carrying the serial number in a wireless signal for broadcasting;
the mobile terminal is used for acquiring a serial number from a wireless signal after the wireless signal broadcasted by the vehicle-mounted terminal is detected, and determining K0m according to the acquired serial number;
after the unlocking requirement is determined, generating and storing a next interactive key K1 and a corresponding serial number thereof;
generating an unlocking request message, and sending the unlocking request message to a vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m;
the vehicle-mounted terminal is also used for decrypting the request message by using K0c after receiving the unlocking request message;
if the decryption is successful, the vehicle is unlocked and the K0c and its serial number are updated with the decrypted result.
As shown in fig. 6, corresponding to the vehicle unlocking method shown in fig. 3, the present specification further provides another vehicle unlocking device, where the device is applied to a mobile terminal, and the mobile terminal and a vehicle-mounted terminal initialize a current interaction key K0 and a serial number corresponding to the current interaction key in advance, and locally store K0 and serial numbers corresponding to the current interaction key K0, respectively, and different values of K0 correspond to different serial numbers, respectively; the unlocking device includes:
the detection module 610 is used for acquiring a serial number from a wireless signal broadcast by the vehicle-mounted terminal after the wireless signal is detected, and determining K0m according to the acquired serial number;
the key generation module 620 is configured to generate and store a next interaction key K1 and a serial number corresponding to the next interaction key K1 after the unlocking requirement is determined;
a sending module 630, configured to generate an unlocking request message, and send the unlocking request message to a vehicle-mounted terminal, where the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m.
As shown in fig. 7, corresponding to the vehicle unlocking method shown in fig. 3, the present specification further provides another vehicle unlocking device, which is applied to a vehicle-mounted terminal, where the mobile terminal and the vehicle-mounted terminal initialize a current interaction key K0 and a serial number corresponding thereto in advance, and store K0 and a serial number corresponding thereto locally, and different values of K0 correspond to different serial numbers; the unlocking device includes:
the broadcast module 710 is configured to determine a sequence number corresponding to K0c, and carry the sequence number in a wireless signal for broadcast;
a receiving module 720, configured to decrypt the request message by using K0c after receiving the unlocking request message sent by the mobile terminal; wherein the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m;
and the unlocking module 730 is used for unlocking the vehicle and updating the K0c and the serial number thereof by using the decrypted result under the condition that the decryption is successful.
The implementation processes of the functions and actions of the components in the above device are specifically described in the implementation processes of the corresponding steps in the above method, and are not described herein again.
Since the device embodiments basically correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The present specification also provides a computer device, which at least includes a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the foregoing method. The method at least comprises the method executed by the mobile terminal and the vehicle-mounted terminal.
The method executed by the mobile terminal comprises the following steps:
after the unlocking requirement is determined, generating a next interaction key K1;
generating an unlocking request message, and sending the unlocking request message to a vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 with K0 m;
after the vehicle unlocking is determined to be successful, the locally saved value of K0m is updated with the locally generated K1.
Another method performed by a mobile terminal includes:
after a wireless signal broadcasted by the vehicle-mounted terminal is detected, a serial number is obtained from the wireless signal, and K0m is determined according to the obtained serial number;
after the unlocking requirement is determined, generating and storing a next interactive key K1 and a corresponding serial number thereof;
generating an unlocking request message, and sending the unlocking request message to a vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m.
The method executed by the vehicle-mounted terminal comprises the following steps:
after receiving an unlocking request message sent by the mobile terminal, decrypting the request message by using locally stored K0 c; wherein the request message at least carries: the result of encrypting K1 with K0 m;
if the decryption is successful, the vehicle is unlocked and the locally stored value of K0c is updated with the decrypted result.
The method executed by the other vehicle-mounted terminal comprises the following steps:
determining a serial number corresponding to K0c, and carrying the serial number in a wireless signal for broadcasting;
after receiving an unlocking request message sent by the mobile terminal, decrypting the request message by using K0 c; wherein the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m;
if the decryption is successful, the vehicle is unlocked and the K0c and its serial number are updated with the decrypted result.
Fig. 8 is a schematic diagram illustrating a more specific hardware structure of a computing device according to an embodiment of the present disclosure, where the computing device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only the components necessary to implement the embodiments of the present description, and need not include all of the components shown in the figures.
The present specification also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the aforementioned method. The method at least comprises the following steps: the mobile terminal and the vehicle-mounted terminal execute the method.
The method executed by the mobile terminal comprises the following steps:
after the unlocking requirement is determined, a next interaction key K1 is generated;
generating an unlocking request message, and sending the unlocking request message to a vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 with K0 m;
after the vehicle unlocking is determined to be successful, the locally saved value of K0m is updated with the locally generated K1.
Another method performed by a mobile terminal includes:
after a wireless signal broadcasted by the vehicle-mounted terminal is detected, acquiring a serial number from the wireless signal, and determining K0m according to the acquired serial number;
after the unlocking requirement is determined, a next interaction key K1 and a corresponding serial number are generated and stored;
generating an unlocking request message, and sending the unlocking request message to a vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m.
The method executed by the vehicle-mounted terminal comprises the following steps:
after receiving an unlocking request message sent by the mobile terminal, decrypting the request message by using locally stored K0 c; wherein the request message at least carries: the result of encrypting K1 with K0 m;
if the decryption is successful, the vehicle is unlocked and the locally stored value of K0c is updated with the decrypted result.
The method executed by the other vehicle-mounted terminal comprises the following steps:
determining a serial number corresponding to K0c, and carrying the serial number in a wireless signal for broadcasting;
after receiving an unlocking request message sent by the mobile terminal, decrypting the request message by using K0 c; wherein the unlocking request message at least carries: the result of encrypting K1 and its serial number with K0 m;
if the decryption is successful, the vehicle is unlocked and the K0c and its serial number are updated with the decrypted result.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The systems, devices, modules or units described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, laptop, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the device embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the present disclosure, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the present disclosure.

Claims (24)

1. A vehicle unlocking method, a mobile terminal and a vehicle-mounted terminal respectively store a current interaction key K0 to obtain K0m and K0 c; the unlocking method comprises the following steps:
after the mobile terminal determines the unlocking requirement, generating a next interactive key K1;
the mobile terminal sends an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of symmetric encryption of K1 with K0 m;
the vehicle-mounted terminal decrypts the encrypted result in the unlocking request message by using K0 c;
if the decryption is successful, unlocking the vehicle, and updating the value of the locally stored K0c by using the decrypted K1;
and after the mobile terminal determines that the vehicle is successfully unlocked, updating the value of the locally stored K0m by using the locally generated K1.
2. The method according to claim 1, wherein the mobile terminal and the vehicle-mounted terminal respectively store the current interaction key K0, and the method comprises the following steps:
the mobile terminal and the vehicle-mounted terminal initialize the current interaction key K0 in advance and respectively store the value of K0 locally.
3. The method of claim 1, further comprising: the mobile terminal generates an unlocking request message; the unlocking request message also comprises an unlocking instruction encrypted based on K0 m.
4. The method of claim 1, the determining that vehicle unlocking was successful comprising: after receiving an unlocking success message returned by the vehicle-mounted terminal, determining that the unlocking is successful;
the method further comprises the following steps: and the mobile terminal sends the unlocking request again under the condition that the unlocking success message is not received within the preset time length.
5. The method of claim 1, further comprising:
the mobile terminal locally saves the history of the K0m value;
and the vehicle-mounted terminal locally saves the history of the K0c value.
6. The method of claim 5, further comprising:
under the condition that unlocking failure is determined, the mobile terminal sends the history record of the K0m value stored locally to the vehicle-mounted terminal;
and the vehicle-mounted terminal determines whether to unlock the vehicle according to the history of the K0m value and the history of the locally stored K0c value.
7. The method of claim 6, wherein the vehicle terminal determines whether to unlock the vehicle according to the history of K0m values and the history of locally saved K0c values, and the method comprises the following steps:
the vehicle-mounted terminal acquires all or part of history records from the history records of the K0m value according to a preset unlocking strategy;
and matching the acquired history record with the history record of the locally stored K0c value, and determining to unlock the vehicle if the matching is successful.
8. The method of claim 6, after unlocking the vehicle, further comprising:
the vehicle-mounted terminal sends an interactive key synchronization message to the mobile terminal;
and after receiving the interactive key synchronization message, the mobile terminal synchronously interacts the key with the vehicle-mounted terminal.
9. The method of claim 8, the synchronizing interaction keys, comprising: synchronously initializing a secret key;
the method further comprises the following steps: the mobile terminal deletes the original history record of the interaction key stored locally; or, the mobile terminal synchronizes the interactive key on the basis of the original history.
10. The method of claim 5, further comprising:
under the condition that unlocking failure is determined, the mobile terminal sends a part of history records of the locally stored K0m values to the vehicle-mounted terminal;
the vehicle-mounted terminal determines whether to unlock the vehicle according to the partial history of the K0m value and the history of the locally stored K0c value;
the partial history record includes: a preset number of history records that have been recently generated.
11. A vehicle unlocking method is applied to a mobile terminal, wherein the mobile terminal and a vehicle-mounted terminal respectively store a current interaction key K0 to obtain K0m and K0 c; the unlocking method comprises the following steps:
after the unlocking requirement is determined, generating a next interaction key K1;
sending an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of symmetric encryption of K1 with K0 m;
after the vehicle unlocking is determined to be successful, the locally saved value of K0m is updated with the locally generated K1.
12. A vehicle unlocking method is applied to a vehicle-mounted terminal, a mobile terminal and the vehicle-mounted terminal respectively store a current interaction key K0 to obtain K0m and K0 c; the unlocking method comprises the following steps:
after receiving an unlocking request message sent by a mobile terminal, decrypting an encrypted result in the unlocking request message by using K0 c; wherein the request message at least carries: the result of symmetric encryption of K1 with K0 m;
if the decryption is successful, the vehicle is unlocked and the locally saved value of K0c is updated with the decrypted K1.
13. A vehicle unlocking method is characterized in that a mobile terminal and a vehicle-mounted terminal respectively store a current interaction key K0 and a corresponding serial number thereof to obtain K0m and K0c, and different K0 values respectively correspond to different serial numbers; the unlocking method comprises the following steps:
the vehicle-mounted terminal determines a serial number corresponding to K0c, and carries the serial number in a wireless signal for broadcasting;
after detecting a wireless signal broadcast by a vehicle-mounted terminal, the mobile terminal acquires a serial number from the wireless signal, and determines K0m according to the acquired serial number;
after the mobile terminal determines the unlocking requirement, generating and storing a next interactive key K1 and a corresponding serial number thereof;
the mobile terminal sends an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of symmetric encryption of K1 and the serial number thereof by K0 m;
after receiving the unlocking request message, the vehicle-mounted terminal decrypts the encrypted result in the unlocking request message by using K0 c;
if the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update K0c and its serial number.
14. The method of claim 13, further comprising:
and after the vehicle is unlocked, the vehicle-mounted terminal sends an unlocking success message to the mobile terminal.
15. The method of claim 14, further comprising:
under the condition that the mobile terminal does not receive the unlocking success message within a preset time length, judging whether a serial number in a wireless signal broadcast by the vehicle-mounted terminal is a serial number of K1;
if yes, determining that unlocking is successful;
and if not, sending the unlocking request again.
16. A vehicle unlocking method is applied to a mobile terminal, the mobile terminal and a vehicle-mounted terminal respectively store a current interaction key K0 and a corresponding serial number thereof to obtain K0m and K0c, and different K0 values respectively correspond to different serial numbers; the unlocking method comprises the following steps:
after a wireless signal broadcasted by the vehicle-mounted terminal is detected, acquiring a serial number from the wireless signal, and determining K0m according to the acquired serial number;
after the unlocking requirement is determined, generating and storing a next interactive key K1 and a corresponding serial number thereof;
sending an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of symmetric encryption of K1 and its serial number with K0 m.
17. A vehicle unlocking method is applied to a vehicle-mounted terminal, a mobile terminal and the vehicle-mounted terminal respectively store a current interaction key K0 and a corresponding serial number thereof to obtain K0m and K0c, and different K0 values respectively correspond to different serial numbers; the unlocking method comprises the following steps:
determining a serial number corresponding to K0c, and carrying the serial number in a wireless signal for broadcasting;
after receiving an unlocking request message sent by a mobile terminal, decrypting an encryption result in the unlocking request message by using K0 c; wherein the unlocking request message at least carries: the result of symmetric encryption of K1 and the serial number thereof by K0 m;
if the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update the K0c and the serial number thereof.
18. A vehicle unlocking system comprises a mobile terminal and a vehicle-mounted terminal, wherein the mobile terminal and the vehicle-mounted terminal respectively store a current interaction key K0 to obtain K0m and K0 c;
the mobile terminal is used for generating a next interactive key K1 after the unlocking requirement is determined; sending an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of symmetric encryption of K1 with K0 m;
the vehicle-mounted terminal is used for decrypting an encrypted result in the unlocking request message by using locally stored K0c after receiving the unlocking request message; if the decryption is successful, unlocking the vehicle, and updating the value of the locally stored K0c by using the decrypted K1;
and the mobile terminal is further used for updating the value of the locally stored K0m by using the locally generated K1 after the vehicle is determined to be successfully unlocked.
19. A vehicle unlocking device is applied to a mobile terminal, and the mobile terminal and a vehicle-mounted terminal respectively store a current interaction key K0 to obtain K0m and K0 c; the unlocking device includes:
the key generation module is used for generating a next interaction key K1 after the unlocking requirement is determined;
a sending module, configured to send an unlocking request message to the vehicle-mounted terminal, where the unlocking request message at least carries: the result of symmetric encryption of K1 with K0 m;
and the updating module is used for updating the value of the locally saved K0m by using the locally generated K1 after the vehicle unlocking is determined to be successful.
20. A vehicle unlocking device is applied to a vehicle-mounted terminal, and a mobile terminal and the vehicle-mounted terminal respectively store a current interaction key K0 to obtain K0m and K0 c; the unlocking device includes:
the receiving module is used for decrypting an encrypted result in the unlocking request message by using locally stored K0c after receiving the unlocking request message sent by the mobile terminal; wherein the request message at least carries: the result of symmetric encryption of K1 with K0 m;
and the unlocking module is used for unlocking the vehicle and updating the value of the locally stored K0c by using the decrypted K1 under the condition that the decryption is successful.
21. A vehicle unlocking system comprises a mobile terminal and a vehicle-mounted terminal, wherein the mobile terminal and the vehicle-mounted terminal respectively store a current interaction key K0 and a corresponding serial number thereof to obtain K0m and K0c, and different K0 values respectively correspond to different serial numbers;
the vehicle-mounted terminal is used for determining a serial number corresponding to K0c and carrying the serial number in a wireless signal for broadcasting;
the mobile terminal is used for acquiring a serial number from a wireless signal after the wireless signal broadcasted by the vehicle-mounted terminal is detected, and determining K0m according to the acquired serial number;
after the unlocking requirement is determined, a next interaction key K1 and a corresponding serial number are generated and stored;
sending an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: the result of symmetric encryption of K1 and the serial number thereof by K0 m;
the vehicle-mounted terminal is further used for decrypting an encrypted result in the unlocking request message by using K0c after receiving the unlocking request message;
if the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update K0c and its serial number.
22. A vehicle unlocking device is applied to a mobile terminal, the mobile terminal and a vehicle-mounted terminal respectively store a current interaction key K0 and a corresponding serial number thereof to obtain K0m and K0c, and different K0 values respectively correspond to different serial numbers; the unlocking device includes:
the detection module is used for acquiring a serial number from a wireless signal after the wireless signal broadcasted by the vehicle-mounted terminal is detected, and determining K0m according to the acquired serial number;
the key generation module is used for generating and storing a next interactive key K1 and a corresponding serial number thereof after the unlocking requirement is determined;
a sending module, configured to send an unlocking request message to the vehicle-mounted terminal, where the unlocking request message at least carries: the result of symmetric encryption of K1 and its serial number with K0 m.
23. A vehicle unlocking device is applied to a vehicle-mounted terminal, a mobile terminal and the vehicle-mounted terminal respectively store a current interaction key K0 and a corresponding serial number thereof to obtain K0m and K0c, and different K0 values respectively correspond to different serial numbers; the unlocking device includes:
the broadcasting module is used for determining the serial number corresponding to the K0c and carrying the serial number in the wireless signal for broadcasting;
the receiving module is used for decrypting an encrypted result in the unlocking request message by using K0c after receiving the unlocking request message sent by the mobile terminal; wherein the unlocking request message at least carries: the result of symmetric encryption of K1 and the serial number thereof by K0 m;
and the unlocking module is used for unlocking the vehicle under the condition that the decryption is successful, and updating the K0c and the serial number thereof by using the decrypted K1.
24. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the method of any one of claims 11, 12, 16 and 17.
CN202210573973.9A 2020-04-01 2020-04-01 Vehicle unlocking method and system Pending CN114999029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210573973.9A CN114999029A (en) 2020-04-01 2020-04-01 Vehicle unlocking method and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210573973.9A CN114999029A (en) 2020-04-01 2020-04-01 Vehicle unlocking method and system
CN202010252180.8A CN111491272B (en) 2020-04-01 2020-04-01 Vehicle unlocking method and system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202010252180.8A Division CN111491272B (en) 2020-04-01 2020-04-01 Vehicle unlocking method and system

Publications (1)

Publication Number Publication Date
CN114999029A true CN114999029A (en) 2022-09-02

Family

ID=71813622

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210573973.9A Pending CN114999029A (en) 2020-04-01 2020-04-01 Vehicle unlocking method and system
CN202010252180.8A Active CN111491272B (en) 2020-04-01 2020-04-01 Vehicle unlocking method and system

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010252180.8A Active CN111491272B (en) 2020-04-01 2020-04-01 Vehicle unlocking method and system

Country Status (1)

Country Link
CN (2) CN114999029A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347597B (en) * 2021-05-27 2022-07-15 江铃汽车股份有限公司 Communication encryption method and system of Bluetooth key
CN114374950A (en) * 2022-01-14 2022-04-19 重庆长安汽车股份有限公司 Bluetooth-based short-range vehicle control system, vehicle control method and vehicle

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050035658A1 (en) * 2003-07-22 2005-02-17 Proefke David T. Adaptive actuation vehicle locking system and method
CN107341872A (en) * 2017-01-11 2017-11-10 上海共佰克智能科技有限公司 The control method and system of lock
CN107700962A (en) * 2017-09-27 2018-02-16 湖南文理学院 A kind of safe and intelligent door-locking system and its control method
CN108109245A (en) * 2017-12-29 2018-06-01 惠州Tcl家电集团有限公司 Unlocking method, system, intelligent door lock, mobile terminal and storage medium
CN109003368A (en) * 2018-07-17 2018-12-14 北京思源互联科技有限公司 Bluetooth access control system offline password updating method and Bluetooth access control system
CN109872423A (en) * 2019-01-17 2019-06-11 深圳旦倍科技有限公司 A kind of intelligent door lock system
CN110047172A (en) * 2018-01-04 2019-07-23 台湾福兴工业股份有限公司 The control method and electronic lock of an electronic lock are operated using hand-hold device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2871007B1 (en) * 2004-05-27 2006-07-14 Gemplus Sa SECURE UNLOCKING OF A MOBILE TERMINAL
CN106603470A (en) * 2015-10-16 2017-04-26 上海汽车集团股份有限公司 Vehicle control method, apparatus, vehicle key generation method and system
CN106658493B (en) * 2016-10-17 2019-12-06 东软集团股份有限公司 Key management method, device and system
CN110136306B (en) * 2019-05-16 2022-05-13 广州小鹏汽车科技有限公司 Vehicle key control method and system
CN110310392B (en) * 2019-05-22 2021-07-16 平安科技(深圳)有限公司 Vehicle unlocking method and device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050035658A1 (en) * 2003-07-22 2005-02-17 Proefke David T. Adaptive actuation vehicle locking system and method
CN107341872A (en) * 2017-01-11 2017-11-10 上海共佰克智能科技有限公司 The control method and system of lock
CN107700962A (en) * 2017-09-27 2018-02-16 湖南文理学院 A kind of safe and intelligent door-locking system and its control method
CN108109245A (en) * 2017-12-29 2018-06-01 惠州Tcl家电集团有限公司 Unlocking method, system, intelligent door lock, mobile terminal and storage medium
CN110047172A (en) * 2018-01-04 2019-07-23 台湾福兴工业股份有限公司 The control method and electronic lock of an electronic lock are operated using hand-hold device
CN109003368A (en) * 2018-07-17 2018-12-14 北京思源互联科技有限公司 Bluetooth access control system offline password updating method and Bluetooth access control system
CN109872423A (en) * 2019-01-17 2019-06-11 深圳旦倍科技有限公司 A kind of intelligent door lock system

Also Published As

Publication number Publication date
CN111491272B (en) 2022-04-19
CN111491272A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
US10708062B2 (en) In-vehicle information communication system and authentication method
US9544768B2 (en) Method and apparatus for performing secure Bluetooth communication
CN109448195B (en) Authentication method and device for vehicle virtual key
US11212080B2 (en) Communication system, vehicle, server device, communication method, and computer program
WO2019159593A1 (en) Electronic control device and communication system
US20100070769A1 (en) Log acquisition system, log collection terminal, log acquisition terminal, and log acquisition method and program using the same system and terminals
CN107864124B (en) Terminal information security protection method, terminal and Bluetooth lock
CN109286638B (en) Automobile diagnosis equipment authentication method and related device
CN111491272B (en) Vehicle unlocking method and system
US9363266B2 (en) Secured electronic device
US11824843B2 (en) Electronic device for secure communications with an automobile
CN113676478B (en) Data processing method and related equipment
CN113989958A (en) Digital key sharing system, method and apparatus, vehicle and storage medium
CN110730447A (en) User identity protection method, user terminal and core network
CN114785532B (en) Security chip communication method and device based on bidirectional signature authentication
CN114980025B (en) Information viewing method of security chip and security chip device
US20180034785A1 (en) Method for providing an authenticated connection between at least two communication partners
CN111179474B (en) Unlocking processing method and device for vehicle authenticated by user and electronic equipment
CN112667992A (en) Authentication method, authentication device, storage medium, and electronic apparatus
CN112601219A (en) Data encryption and decryption method and system, server, storage device and mobile device
CN116155625B (en) Key exchange method, device, electronic equipment, storage medium and program product
CN111541642A (en) Bluetooth encryption communication method and device based on dynamic secret key and computer equipment
CN115296813B (en) Identity authentication method and system for automobile Ethernet controller
CN115037455B (en) Data protection method and system and electronic equipment
CN115620426A (en) Vehicle key control device, method, electronic device and readable storage medium

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