CN115273281A - Vehicle Bluetooth key acquisition method, device, equipment and storage medium - Google Patents

Vehicle Bluetooth key acquisition method, device, equipment and storage medium Download PDF

Info

Publication number
CN115273281A
CN115273281A CN202210877383.5A CN202210877383A CN115273281A CN 115273281 A CN115273281 A CN 115273281A CN 202210877383 A CN202210877383 A CN 202210877383A CN 115273281 A CN115273281 A CN 115273281A
Authority
CN
China
Prior art keywords
key
bluetooth
bluetooth key
target vehicle
server
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
CN202210877383.5A
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.)
Chongqing Changan New Energy Automobile Technology Co Ltd
Original Assignee
Chongqing Changan Automobile 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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202210877383.5A priority Critical patent/CN115273281A/en
Publication of CN115273281A publication Critical patent/CN115273281A/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
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R25/00Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
    • B60R25/20Means to switch the anti-theft system on or off
    • B60R25/24Means to switch the anti-theft system on or off using electronic identifiers containing a code not memorised by the user
    • 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/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R2325/00Indexing scheme relating to vehicle anti-theft devices
    • B60R2325/10Communication protocols, communication systems of vehicle anti-theft devices
    • B60R2325/101Bluetooth
    • 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/00817Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mechanical Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The application relates to the technical field of vehicles, in particular to a method, a device, equipment and a storage medium for acquiring a Bluetooth key of a vehicle, wherein the method comprises the following steps: sending a Bluetooth key acquisition request of a target vehicle to a server; receiving an encryption key sent by a server, wherein the encryption key is obtained by encrypting by using a public key of a mobile terminal after the server generates a Bluetooth key of a target vehicle according to a Bluetooth key acquisition request; and decrypting the encrypted key by using the private key of the vehicle to obtain the Bluetooth key of the target vehicle, and communicating with the target vehicle by using the Bluetooth key. Therefore, the problems that the Bluetooth key is easy to be cracked and stolen, the safety is poor and the like in the related technology are solved.

Description

Vehicle Bluetooth key acquisition method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of vehicle technologies, and in particular, to a method, an apparatus, a device, and a storage medium for acquiring a bluetooth key of a vehicle.
Background
The current mobile phone Bluetooth key is a new technology derived based on an entity key, and a user can complete vehicle control functions such as vehicle unlocking, ignition and the like through the mobile phone Bluetooth key in a scene without carrying the entity key.
However, the mobile phone bluetooth key is different from the physical vehicle key, and if the bluetooth key is cracked, the cracker can control the vehicle by using the forged key, so as to achieve vehicle theft and even more dangerous vehicle control operation, and therefore a technical scheme for improving the security of the bluetooth key needs to be provided to improve the reliability of the bluetooth key.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for obtaining a Bluetooth key of a vehicle, which are used for solving the problems that the Bluetooth key is easy to be cracked and stolen, the safety is poor and the like in the related technology.
The embodiment of the first aspect of the present application provides a method for acquiring a bluetooth key of a vehicle, where the method is applied to a mobile terminal, and the method includes the following steps: sending a Bluetooth key acquisition request of a target vehicle to a server; receiving an encryption key sent by the server, wherein the encryption key is obtained by utilizing a public key of the mobile terminal for encryption after the server generates a Bluetooth key of the target vehicle according to the Bluetooth key acquisition request; and decrypting the encryption key by using the private key of the vehicle to obtain the Bluetooth key of the target vehicle, and communicating with the target vehicle by using the Bluetooth key.
According to the technical means, the embodiment of the application can acquire the encrypted Bluetooth key from the server, and the Bluetooth key is in an encrypted state when the mobile terminal is stored, so that the Bluetooth key can be effectively prevented from being cracked and stolen, the safety of the Bluetooth key is improved, a real Bluetooth key can be obtained only through decryption when the Bluetooth key is used, online safety authentication is not needed, the Bluetooth key can be safely used in an offline scene, the applicability of the Bluetooth key is effectively improved, and the use experience of a user is improved.
Further, before receiving the encryption key sent by the server, the method comprises the following steps: and when the server generates the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request, generating an asymmetric encrypted key pair through a preset security container, and sending a public key in the key pair to the server.
According to the technical means, the key pair can be generated through the safety container in the embodiment of the application, the encrypted key is taken from the server under the condition of network, the safety container is used for storing the key, and the safety of the Bluetooth key is improved.
Further, the decrypting the encryption key by using the private key of the user to obtain the bluetooth key of the target vehicle further includes: obtaining a private key and the encryption key in the key pair stored in the preset security container; and decrypting the encrypted key by using a private key in the key pair to obtain the Bluetooth key of the target vehicle.
According to the technical means, when the Bluetooth key decryption device is used in an off-line scene, the secret key decryption and storage Bluetooth key is taken out from the safety container to obtain a real available Bluetooth key, online safety authentication is not needed, and the Bluetooth key can be taken out from the safety container unit, so that the safety of Bluetooth communication is ensured.
The embodiment of the second aspect of the present application provides a method for acquiring a bluetooth key of a vehicle, where the method is applied to a server, where the method includes the following steps: receiving a Bluetooth key acquisition request of a target vehicle sent by a mobile terminal; generating a Bluetooth key of the target vehicle according to the Bluetooth key acquisition request, and encrypting the Bluetooth key by using a public key of a mobile terminal to obtain an encrypted key; and sending the encryption key to the mobile terminal, so that the mobile terminal decrypts the encryption key by using a private key to obtain the Bluetooth key.
According to the technical means, the embodiment of the application can utilize the public key of the mobile terminal to encrypt the Bluetooth key, and the encrypted Bluetooth key is sent to the mobile terminal.
The embodiment of the third aspect of the present application provides a bluetooth key acquisition apparatus for a vehicle, where the apparatus is applied to a mobile terminal, and the apparatus includes: the first sending module is used for sending a Bluetooth key acquisition request of a target vehicle to a server; the receiving module is used for receiving the encryption key sent by the server, wherein the encryption key is obtained by utilizing the public key of the mobile terminal to encrypt after the server generates the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request; and the decryption module is used for decrypting the encryption key by using a private key of the decryption module to obtain the Bluetooth key of the target vehicle and communicating with the target vehicle by using the Bluetooth key.
Further, still include: and the generating module is used for generating an asymmetric encryption key pair through a preset safety container when the server generates the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request before receiving the encryption key sent by the server, and sending a public key in the key pair to the server.
Further, the decryption module is further configured to: obtaining a private key and the encryption key in the key pair stored in the preset security container; and decrypting the encrypted key by using a private key in the key pair to obtain the Bluetooth key of the target vehicle.
An embodiment of a fourth aspect of the present application provides a bluetooth key acquisition apparatus for a vehicle, where the apparatus is applied to a server, where the apparatus includes: the receiving module is used for receiving a Bluetooth key acquisition request of a target vehicle sent by the mobile terminal; the encryption module is used for generating the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request and encrypting the Bluetooth key by using a public key of the mobile terminal to obtain an encrypted key; and the second sending module is used for sending the encryption key to the mobile terminal, so that the mobile terminal decrypts the encryption key by using a private key to obtain the Bluetooth key.
An embodiment of a fifth aspect of the present application provides an electronic device, including: the bluetooth key acquisition system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the bluetooth key acquisition method of the vehicle according to the embodiment.
A sixth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, the program being executed by a processor for implementing the bluetooth key acquisition method of a vehicle as described in the above embodiments.
Therefore, the application has at least the following beneficial effects:
(1) According to the embodiment of the application, the encrypted Bluetooth key can be obtained from the server, and the Bluetooth key is in an encrypted state when being stored in the mobile terminal, so that the Bluetooth key can be effectively prevented from being cracked and stolen, the safety of the Bluetooth key is improved, a real Bluetooth key can be obtained only through decryption when the Bluetooth key is used, online safety authentication is not needed, the Bluetooth key can be safely used in an offline scene, the applicability of the Bluetooth key is effectively improved, and the use experience of a user is improved;
(2) According to the embodiment of the application, the secret key pair can be generated through the safety container, the encrypted key is taken from the server under the condition of networking, the secret key is stored by using the safety container, and the safety of the Bluetooth key is improved;
(3) The embodiment of the application can be used in an off-line scene, the Bluetooth key stored by key decryption is taken out from the safety container to obtain a real available Bluetooth key, and the safety of Bluetooth communication is ensured without online safety certification and through the Bluetooth key taken by the safety container unit.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a bluetooth key acquisition method for a vehicle according to a first embodiment of the present application;
FIG. 2 is a block diagram of a Bluetooth key acquisition system of a vehicle provided in accordance with an embodiment of the present application;
fig. 3 is a flowchart illustrating a bluetooth key acquisition method for a vehicle according to a second embodiment of the present application;
fig. 4 is a flowchart illustrating a bluetooth key acquisition method for a vehicle according to a third embodiment of the present application;
fig. 5 is a block diagram of a bluetooth key acquisition apparatus of a vehicle according to a first embodiment of the present application;
fig. 6 is a block diagram of a bluetooth key acquisition apparatus of a vehicle according to a second embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
In the related technology, focusing on the realization of the authentication function in the use process of the Bluetooth key, the technical scheme of authenticating the identity of the Bluetooth key by using the cloud server can prevent the vehicle from being illegally started, so that the safety use performance of the vehicle is improved, and the vehicle is prevented from being stolen. However, the related art lacks security authentication using a bluetooth key in an offline scenario, and has certain limitations, and the security of locally saving the key by an APP (Application program) is not considered enough.
Therefore, the scheme for improving the safety of offline use of the Bluetooth key based on the mobile phone safety storage container is provided, the safety of the mobile phone Bluetooth key of the user can be improved, and more guarantees are brought to the user for using the vehicle.
A bluetooth key acquisition method, apparatus, device, and storage medium of a vehicle according to an embodiment of the present application will be described below with reference to the accompanying drawings. Specifically, fig. 1 is a flowchart illustrating a method for acquiring a bluetooth key of a vehicle according to an embodiment of the present application.
The method for obtaining the bluetooth key of the vehicle shown in fig. 1 is applied to a mobile terminal, for example, a mobile terminal of an IOS operating system (IOS is a handheld device operating system developed by apple, inc.), an Android operating system (Android system is an operating system based on Linux, free and open source codes), and a Windows Phone operating system (Windows Phone is a mobile Phone operating system issued by microsoft), and certainly, the method may also be a personal computer and other intelligent mobile terminals, which is not limited in the embodiment of the present application. The method comprises the following steps:
in step S101, a bluetooth key acquisition request of the target vehicle is transmitted to the server.
In step S102, an encryption key sent by the server is received, where the encryption key is obtained by the server by generating a bluetooth key of the target vehicle according to the bluetooth key acquisition request and then encrypting the generated bluetooth key with a public key of the mobile terminal.
It will be appreciated that, after the server receives the acquisition request, the key management unit of the server: and the Bluetooth key is responsible for generating the Bluetooth key and issuing the Bluetooth key to the mobile terminal and the vehicle terminal, wherein the Bluetooth key is a cipher text generally. Simultaneously, the server sends for mobile terminal after encrypting the bluetooth key, because the bluetooth key is in the encryption state, consequently can effectively avoid being cracked the robbery, promotes the security of bluetooth key transmission.
In the embodiment of the present application, before receiving the encryption key sent by the server, the method includes: when the server generates the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request, an asymmetric encryption key pair is generated through a preset safety container, and a public key in the key pair is sent to the server.
The preset safety container can be specifically arranged according to actual requirements and is not specifically limited.
It can be understood that, this application embodiment can generate the key pair through the secure container, takes the encrypted key from the server under the network condition, uses the secure container to save the key, promotes the security of bluetooth key.
Specifically, the mobile terminal is provided with a secure container unit, which is used for generating an asymmetric encrypted key pair through the secure container when the server generates the key, and the key pair is stored in the secure container. And returning the public key to the server, encrypting the Bluetooth key by using the public key by the server, and then returning the encrypted key to the mobile terminal.
In step S103, the encryption key is decrypted by using its own private key to obtain the bluetooth key of the target vehicle, and the target vehicle communicates with the bluetooth key.
It can be understood that, this application embodiment can just obtain real bluetooth key through the deciphering when using, need not online security authentication, can be under the off-line scene safe use bluetooth key, effectively promotes bluetooth key's suitability, improves user's use and experiences.
The mobile terminal is provided with a Bluetooth communication unit which is responsible for Bluetooth communication of the mobile terminal. The data are encrypted and decrypted through the Bluetooth key, the sent information is encrypted, and the received information is decrypted. On the premise that the transmitted data are all ciphertexts, normal operation of Bluetooth communication is maintained, and safety is guaranteed.
In this embodiment of the application, decrypting the encryption key with its own private key to obtain the bluetooth key of the target vehicle further includes: acquiring a private key and an encryption key in a key pair stored in a preset safety container; and decrypting the encrypted key by using a private key in the key pair to obtain the Bluetooth key of the target vehicle.
It can be understood that, when the embodiment of the application is used in an off-line scene, the key is taken out from the safety container to decrypt the stored bluetooth key to obtain a truly usable bluetooth key, and the security of bluetooth communication can be ensured through the bluetooth key taken out from the safety container unit without on-line security authentication.
Specifically, the key cryptogram is also stored inside the secure container unit of the activation terminal. When the Bluetooth key is used offline, the mobile terminal decrypts the encrypted key by using the private key corresponding to the security container without participation of a server side, obtains a real Bluetooth key, and can communicate with a vehicle side.
Because the encrypted key is stored in the mobile terminal in a persistent manner and is put into the APP process, the step is at risk of being cracked, and if the mobile terminal or the APP is cracked, an attacker can take the file for storing the key. But it is not risky for an attacker to get to the encrypted key because decryption is required before use. Therefore, the embodiment of the application has a very high security requirement on storage of the decrypted key, and is implemented by using a secure container mechanism, namely Android keystore on the Android end, and the same mechanism is also available on the IOS. The android keystore will be explained as an example.
Android keystore is a security key library provided by the Android system, operates in a system process, and can prevent key materials from being extracted from an application process and Android equipment integrally, so that the key materials are prevented from being used outside the Android equipment in an unauthorized manner. The keying material is bound to secure hardware of the Android device, such as a Trusted Execution Environment (TEE) and a Secure Element (SE). When this function is enabled for the key, its keying material is never exposed outside the secure hardware.
An Application Programming Interface (API) provided by android keystore may directly generate a key pair, obtain the key under the security condition of the Application process, and use this mechanism to securely store and decrypt the private key of the bluetooth key. In actual use, the stored key ciphertext is decrypted, and the real key is taken to carry out Bluetooth communication.
The stored secret key is generated by the APP security container, and the stored encrypted Bluetooth key is generated by the cloud. The key generation needs the participation of the cloud, and even if the cloud does not participate in the subsequent off-line use process, the safety of the Bluetooth communication can be ensured through the Bluetooth key taken by the safety container unit.
According to the method for acquiring the Bluetooth key of the vehicle, the encrypted Bluetooth key can be acquired from the server, and the Bluetooth key is in an encrypted state when the mobile terminal stores the encrypted Bluetooth key, so that the encrypted Bluetooth key can be effectively prevented from being decrypted and stolen, the safety of the Bluetooth key is improved, a real Bluetooth key can be obtained through decryption when the encrypted Bluetooth key is used, online safety authentication is not needed, the Bluetooth key can be safely used in an offline scene, the applicability of the encrypted Bluetooth key is effectively improved, and the use experience of a user is improved; the secret key pair can be generated through the safety container, the encrypted key is taken from the server under the condition of networking, the secret key is stored by using the safety container, and the safety of the Bluetooth key is improved; when the Bluetooth key decryption device is used in an offline scene, the secret key decryption stored Bluetooth key is taken out from the safety container to obtain a real available Bluetooth key, online safety authentication is not needed, and safety of Bluetooth communication is guaranteed through the Bluetooth key taken by the safety container unit.
A method for acquiring a bluetooth key of a vehicle will be explained in the following by a specific embodiment, where a mobile terminal takes a mobile phone terminal as an example, and a server takes a cloud terminal as an example, as shown in fig. 2, a bluetooth key acquisition system of a vehicle includes the mobile phone terminal, the cloud terminal, and the vehicle terminal, and the mobile phone terminal includes a mobile phone bluetooth communication unit, a mobile phone security container unit, and a mobile phone bluetooth communication unit: the Bluetooth communication is carried out on the mobile phone terminal; the mobile phone safety container unit: the Bluetooth mobile phone is responsible for storing a secret key and an encrypted Bluetooth key; the high in the clouds includes key management unit: the system is responsible for generating a secret key and sending the secret key to the mobile phone end and the vehicle end to ensure that the mobile phone end and the vehicle end can carry out safe communication by using the Bluetooth key; the car end includes car end bluetooth communication unit: and the vehicle is in charge of performing Bluetooth communication by using a Bluetooth key on the vehicle end.
Based on the system shown in fig. 2, the method for obtaining the bluetooth key of the vehicle shown in fig. 3 includes the following steps:
(1) The safety container unit of the mobile phone APP generates a secret key pair, the public key is returned to the server side, the server side encrypts the Bluetooth key by using the public key, then the encrypted key is returned to the mobile phone side, and the safety container unit of the mobile phone stores the encrypted Bluetooth key;
(2) Under the off-line condition, the mobile phone can extract a private key and an encrypted key from the mobile phone security container unit, and the mobile phone security container unit decrypts the encrypted key by using the private key to obtain a real Bluetooth key;
(3) And the communication unit of the mobile phone end communicates with the communication unit of the vehicle end.
To sum up, the embodiment of the application comprises an HTTP communication technology, a Bluetooth communication technology, a security container technology, a smart phone control system and a vehicle control system, wherein the security of a Bluetooth key is improved through a security container, a key pair is generated through the security container, an encrypted key is taken from a server under the condition of network existence, and the security container is used for storing the key; when the mobile phone Bluetooth key is used in an off-line scene, the secret key is taken out from the safety container to decrypt the stored Bluetooth key to obtain a truly usable Bluetooth key, so that the safety of the mobile phone Bluetooth key of a user can be improved, and more guarantees are brought to the user for using the mobile phone.
Next, a bluetooth key acquisition method for a vehicle according to an embodiment of the present application will be described with reference to the drawings.
Fig. 4 is a flowchart of a bluetooth key obtaining method for a vehicle according to an embodiment of the present application, and is applied to a server, where the server may be a cloud, and the like, and is not limited specifically.
As shown in fig. 4, the bluetooth key acquisition method for a vehicle includes the steps of:
in step S201, receiving a bluetooth key acquisition request of a target vehicle sent by a mobile terminal;
in step S202, a bluetooth key of the target vehicle is generated according to the bluetooth key acquisition request, and the bluetooth key is encrypted by using the public key of the mobile terminal to obtain an encrypted key;
in step S203, the encryption key is sent to the mobile terminal, so that the mobile terminal decrypts the encryption key by using the private key to obtain the bluetooth key.
It should be noted that the explanation of the foregoing method embodiment is also applicable to this embodiment, and is not repeated herein.
According to the method for acquiring the Bluetooth key of the vehicle, the public key of the mobile terminal can be utilized to encrypt the Bluetooth key, the encrypted Bluetooth key is sent to the mobile terminal, and the Bluetooth key is in an encrypted state during sending, so that the Bluetooth key can be effectively prevented from being cracked and stolen, and the safety of the Bluetooth key is improved.
Next, a bluetooth key acquisition apparatus for a vehicle according to an embodiment of the present application will be described with reference to the drawings.
Fig. 5 is a block diagram of a bluetooth key acquisition device of a vehicle according to an embodiment of the present application.
In which the apparatus is applied to a mobile terminal, as shown in fig. 5, the bluetooth key acquisition apparatus 100 of the vehicle includes: a first transmitting module 110, a receiving module 120 and a decrypting module 130.
The first sending module 110 is configured to send a bluetooth key acquisition request of a target vehicle to a server; the receiving module 120 is configured to receive an encryption key sent by the server, where the encryption key is obtained by encrypting, by using a public key of the mobile terminal, after the server generates a bluetooth key of the target vehicle according to the bluetooth key acquisition request; the decryption module 130 is configured to decrypt the encrypted key with its own private key to obtain a bluetooth key of the target vehicle, and communicate with the target vehicle using the bluetooth key.
In this embodiment, the apparatus 100 of this embodiment further includes: and generating a module. The generation module is used for generating an asymmetric encryption key pair through a preset safety container before receiving the encryption key sent by the server and when the server generates the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request, and sending a public key in the key pair to the server.
In an embodiment of the present application, the decryption module 130 is further configured to: acquiring a private key and an encryption key in a key pair stored in a preset safety container; and decrypting the encrypted key by using a private key in the key pair to obtain the Bluetooth key of the target vehicle.
It should be noted that the foregoing explanation of the embodiment of the vehicle bluetooth key acquisition method is also applicable to the vehicle bluetooth key acquisition apparatus of this embodiment, and details are not repeated here.
According to the vehicle Bluetooth key acquisition device provided by the embodiment of the application, the encrypted Bluetooth key can be acquired from the server, and the Bluetooth key is in an encrypted state when the mobile terminal stores the encrypted Bluetooth key, so that the encrypted Bluetooth key can be effectively prevented from being decrypted and stolen, the safety of the Bluetooth key is improved, a real Bluetooth key can be obtained through decryption when the encrypted Bluetooth key is used, online safety authentication is not needed, the Bluetooth key can be safely used in an offline scene, the applicability of the Bluetooth key is effectively improved, and the use experience of a user is improved; the secret key pair can be generated through the safety container, the encrypted key is taken from the server under the condition of networking, the secret key is stored by using the safety container, and the safety of the Bluetooth key is improved; when the Bluetooth key decryption device is used in an offline scene, the secret key decryption stored Bluetooth key is taken out from the safety container to obtain a real available Bluetooth key, online safety authentication is not needed, and safety of Bluetooth communication is guaranteed through the Bluetooth key taken by the safety container unit.
Next, a bluetooth key acquisition apparatus for a vehicle according to an embodiment of the present application will be described with reference to the drawings.
Fig. 6 is a block diagram schematically illustrating a bluetooth key acquisition device of a vehicle according to an embodiment of the present application.
In which the apparatus is applied to a server, as shown in fig. 6, the bluetooth key acquisition apparatus 200 of the vehicle includes: a receiving module 210, an encryption module 220, and a second transmitting module 230.
The receiving module 210 is configured to receive a bluetooth key acquisition request of a target vehicle sent by a mobile terminal; the encryption module 220 is configured to generate a bluetooth key of the target vehicle according to the bluetooth key acquisition request, and encrypt the bluetooth key by using a public key of the mobile terminal to obtain an encrypted key; the second sending module 230 is configured to send the encryption key to the mobile terminal, so that the mobile terminal decrypts the encryption key by using the private key to obtain the bluetooth key.
It should be noted that the foregoing explanation of the embodiment of the vehicle bluetooth key acquisition method is also applicable to the vehicle bluetooth key acquisition apparatus of this embodiment, and details are not repeated here.
According to the bluetooth key acquisition device of vehicle that this application embodiment provided, can utilize the mobile terminal public key encryption bluetooth key to send the bluetooth key after encrypting for mobile terminal, because the bluetooth key is in the encryption state during the transmission, consequently can effectively avoid being cracked the robbery, promote the security of bluetooth key.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device may include:
memory 701, processor 702, and a computer program stored on memory 701 and executable on processor 702.
The processor 702, when executing the program, implements the bluetooth key acquisition method of the vehicle provided in the above-described embodiments.
Further, the electronic device further includes:
a communication interface 703 for communication between the memory 701 and the processor 702.
A memory 701 for storing computer programs operable on the processor 702.
The Memory 701 may include a high-speed RAM (Random Access Memory) Memory, and may also include a non-volatile Memory, such as at least one disk Memory.
If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 may be connected to each other through a bus and perform communication with each other. The bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
Optionally, in a specific implementation, if the memory 701, the processor 702, and the communication interface 703 are integrated on a chip, the memory 701, the processor 702, and the communication interface 703 may complete mutual communication through an internal interface.
The processor 702 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application.
Embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the bluetooth key acquisition method for a vehicle as above.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "N" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more N executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of implementing the embodiments of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a programmable gate array, a field programmable gate array, or the like.
It will be understood by those skilled in the art that all or part of the steps carried out in the method of implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and the program, when executed, includes one or a combination of the steps of the method embodiments.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A Bluetooth key acquisition method for a vehicle, the method being applied to a mobile terminal, wherein the method comprises the following steps:
sending a Bluetooth key acquisition request of a target vehicle to a server;
receiving an encryption key sent by the server, wherein the encryption key is obtained by encrypting by using a public key of the mobile terminal after the server generates the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request;
and decrypting the encryption key by using the private key of the vehicle to obtain the Bluetooth key of the target vehicle, and communicating with the target vehicle by using the Bluetooth key.
2. The method of claim 1, prior to receiving the encryption key sent by the server, comprising:
and when the server generates the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request, generating an asymmetric encrypted key pair through a preset security container, and sending a public key in the key pair to the server.
3. The method of claim 2, wherein decrypting the encrypted key with its own private key results in a bluetooth key of the target vehicle, further comprising:
obtaining a private key and the encryption key in the key pair stored in the preset security container;
and decrypting the encrypted key by using a private key in the key pair to obtain the Bluetooth key of the target vehicle.
4. A Bluetooth key acquisition method for a vehicle, the method being applied to a server, wherein the method comprises the following steps:
receiving a Bluetooth key acquisition request of a target vehicle sent by a mobile terminal;
generating a Bluetooth key of the target vehicle according to the Bluetooth key acquisition request, and encrypting the Bluetooth key by using a public key of a mobile terminal to obtain an encrypted key;
and sending the encryption key to the mobile terminal, so that the mobile terminal decrypts the encryption key by using a private key to obtain the Bluetooth key.
5. A Bluetooth key acquisition apparatus of a vehicle, the apparatus being applied to a mobile terminal, wherein the apparatus comprises:
the first sending module is used for sending a Bluetooth key acquisition request of a target vehicle to a server;
the receiving module is used for receiving the encryption key sent by the server, wherein the encryption key is obtained by utilizing the public key of the mobile terminal to encrypt after the server generates the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request;
and the decryption module is used for decrypting the encryption key by using a private key of the decryption module to obtain the Bluetooth key of the target vehicle and communicating with the target vehicle by using the Bluetooth key.
6. The apparatus of claim 5, further comprising:
and the generating module is used for generating an asymmetric encryption key pair through a preset safety container when the server generates the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request before receiving the encryption key sent by the server, and sending a public key in the key pair to the server.
7. The apparatus of claim 6, wherein the decryption module is further configured to:
obtaining a private key and the encryption key in the key pair stored in the preset security container;
and decrypting the encrypted key by using a private key in the key pair to obtain the Bluetooth key of the target vehicle.
8. A Bluetooth key acquisition apparatus of a vehicle, the apparatus being applied to a server, wherein the apparatus comprises:
the receiving module is used for receiving a Bluetooth key acquisition request of a target vehicle sent by the mobile terminal;
the encryption module is used for generating the Bluetooth key of the target vehicle according to the Bluetooth key acquisition request and encrypting the Bluetooth key by using a public key of the mobile terminal to obtain an encrypted key;
and the second sending module is used for sending the encryption key to the mobile terminal, so that the mobile terminal decrypts the encryption key by using a private key to obtain the Bluetooth key.
9. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the bluetooth key acquisition method of a vehicle as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium on which a computer program is stored, characterized in that the program is executed by a processor for implementing the bluetooth key acquisition method of a vehicle according to any one of claims 1 to 4.
CN202210877383.5A 2022-07-25 2022-07-25 Vehicle Bluetooth key acquisition method, device, equipment and storage medium Pending CN115273281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210877383.5A CN115273281A (en) 2022-07-25 2022-07-25 Vehicle Bluetooth key acquisition method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210877383.5A CN115273281A (en) 2022-07-25 2022-07-25 Vehicle Bluetooth key acquisition method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115273281A true CN115273281A (en) 2022-11-01

Family

ID=83769203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210877383.5A Pending CN115273281A (en) 2022-07-25 2022-07-25 Vehicle Bluetooth key acquisition method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115273281A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196855A (en) * 2007-12-29 2008-06-11 北京华大恒泰科技有限责任公司 Mobile encrypted memory device and cipher text storage area data encrypting and deciphering processing method
CN103116720A (en) * 2011-11-16 2013-05-22 航天信息股份有限公司 Universal serial bus (USB) Key device and account management method and authentication application method thereof
CN104660397A (en) * 2013-11-18 2015-05-27 卓望数码技术(深圳)有限公司 Secret key managing method and system
CN111212429A (en) * 2019-12-11 2020-05-29 全球能源互联网研究院有限公司 Safety access system and method for mobile terminal
CN112039951A (en) * 2020-08-05 2020-12-04 华人运通(上海)云计算科技有限公司 Safe distribution method, device and system of vehicle Bluetooth key and storage medium
CN114257995A (en) * 2020-09-11 2022-03-29 比亚迪股份有限公司 NFC vehicle key registration method, system, terminal device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196855A (en) * 2007-12-29 2008-06-11 北京华大恒泰科技有限责任公司 Mobile encrypted memory device and cipher text storage area data encrypting and deciphering processing method
CN103116720A (en) * 2011-11-16 2013-05-22 航天信息股份有限公司 Universal serial bus (USB) Key device and account management method and authentication application method thereof
CN104660397A (en) * 2013-11-18 2015-05-27 卓望数码技术(深圳)有限公司 Secret key managing method and system
CN111212429A (en) * 2019-12-11 2020-05-29 全球能源互联网研究院有限公司 Safety access system and method for mobile terminal
CN112039951A (en) * 2020-08-05 2020-12-04 华人运通(上海)云计算科技有限公司 Safe distribution method, device and system of vehicle Bluetooth key and storage medium
CN114257995A (en) * 2020-09-11 2022-03-29 比亚迪股份有限公司 NFC vehicle key registration method, system, terminal device and storage medium

Similar Documents

Publication Publication Date Title
CN110380852B (en) Bidirectional authentication method and communication system
CN107040369B (en) Data transmission method, device and system
US20170208049A1 (en) Key agreement method and device for verification information
CN109150897B (en) End-to-end communication encryption method and device
CN110621014B (en) Vehicle-mounted equipment, program upgrading method thereof and server
CN109981562B (en) Software development kit authorization method and device
CN111615105A (en) Information providing method, information obtaining method, information providing device, information obtaining device and terminal
CN108200078B (en) Downloading and installing method of signature authentication tool and terminal equipment
CN111030814A (en) Key negotiation method and device
CN111131300B (en) Communication method, terminal and server
CN113781678A (en) Vehicle Bluetooth key generation and authentication method and system under network-free environment
CN108199847B (en) Digital security processing method, computer device, and storage medium
CN110519215B (en) Data communication method and device
CN101964805B (en) Method, equipment and system for safely sending and receiving data
CN110868291A (en) Data encryption transmission method, device, system and storage medium
CN112672342B (en) Data transmission method, device, equipment, system and storage medium
US20120124378A1 (en) Method for personal identity authentication utilizing a personal cryptographic device
JP2008535427A (en) Secure communication between data processing device and security module
CN112491550A (en) Mobile terminal equipment credibility authentication method and system based on Internet of vehicles
CN110519238B (en) Internet of things security system and communication method based on cryptographic technology
CN111654503A (en) Remote control method, device, equipment and storage medium
EP1790116B1 (en) Method and system for managing authentication and payment for use of broadcast material
CN117118763A (en) Method, device and system for data transmission
CN115801287A (en) Signature authentication method and device
US20240106633A1 (en) Account opening methods, systems, and apparatuses

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
TA01 Transfer of patent application right

Effective date of registration: 20221223

Address after: 401133 room 208, 2 house, 39 Yonghe Road, Yu Zui Town, Jiangbei District, Chongqing

Applicant after: CHONGQING CHANGAN NEW ENERGY AUTOMOBILE TECHNOLOGY Co.,Ltd.

Address before: Changan Automobile Global R&D Center, Yuzui Town, Jiangbei District, Chongqing 400020

Applicant before: Chongqing Changan Automobile Co.,Ltd.

TA01 Transfer of patent application right
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20221101

WD01 Invention patent application deemed withdrawn after publication