Authentication method, device, system, equipment, medium and vehicle
By storing the encrypted authentication data and secret key in the terminal, offline authentication between the terminal and the vehicle is realized, solving the network unreliability problem caused by the dependence on trusted servers in the existing technology, and improving the system's reliability. stability.
Patent Information
- Application Number
- CN202310216283.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-03
AI Technical Summary
The existing technology relies heavily on a trusted server in the authentication process between the terminal and the vehicle, resulting in communication failure when the network is unreliable and cannot be applied.
When the terminal communicates with the trusted server for the first time, authentication data and a random secret key are sent for encryption and stored in the terminal. In subsequent communications, the stored encrypted data and secret key are directly used for authentication to avoid relying on the trusted server.
It realizes offline authentication between the terminal and the car, avoids system instability problems caused by network instability, and improves the reliability of communication.
Smart Images

Figure CN118590876A
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of computer technology, and specifically relates to an authentication method, device, system, equipment, medium and vehicle. Background Art
[0002] During the communication between the terminal and the vehicle in the factory, a trusted server is usually required to maintain real-time communication with the terminal and the vehicle, so that the terminal can verify the identity of the vehicle through the trusted server, or the vehicle can verify the identity of the terminal. For example, the trusted server sends the secret key of this communication to the vehicle and the terminal at the same time, so that both parties can authenticate through the secret key. After the authentication is passed, the communication ends and the secret key becomes invalid.
[0003] However, the above solution relies heavily on a trusted server, which must be online in real time and remain connected. However, if the network is unstable, communication between the terminal and the vehicle will fail. Therefore, the above solution is not applicable to situations where the network is unreliable. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an authentication method, apparatus, system, device, medium and vehicle to achieve offline authentication between a terminal and a vehicle computer.
[0005] The technical solution of this application is as follows:
[0006] In a first aspect, an authentication method is provided, the method comprising:
[0007] In response to the terminal establishing a communication connection with the trusted server for the first time, sending the authentication data of the terminal to the trusted server, so that the trusted server encrypts the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key; wherein the authentication data includes a magic number and hardware information of the terminal;
[0008] Receiving and storing the encrypted authentication data and the encrypted random key sent by the trusted server;
[0009] In response to the communication request, the encrypted hardware information is decrypted. When the encrypted hardware information is successfully decrypted, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
[0010] In a second aspect, an authentication method is provided, the method comprising:
[0011] Receive authentication data of the terminal sent by the terminal; wherein the authentication data is data information sent when the terminal is used for the first time and the terminal establishes a communication connection with the trusted server; the authentication data includes a magic number and hardware information of the terminal;
[0012] Generate a random key;
[0013] Encrypting the authentication data and the random key respectively to obtain encrypted authentication data and encrypted random key;
[0014] The encrypted authentication data and the encrypted random key are sent to the terminal so that the terminal stores the encrypted authentication data and the encrypted random key, and decrypts the encrypted hardware information in response to the communication request. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
[0015] In a third aspect, an authentication method is provided, the method comprising:
[0016] Receive the encrypted magic number and the encrypted random key sent by the terminal; wherein the encrypted magic number and the encrypted random key are stored in the terminal after the terminal communicates with the trusted server for the first time, and the encrypted magic number and the encrypted random key are obtained by encrypting the magic number sent by the trusted server to the terminal and the random key generated by the trusted server; and the encrypted magic number and the encrypted random key are sent to the vehicle computer by the terminal after successfully decrypting the encrypted hardware information and responding to the communication request;
[0017] Decrypting the encrypted magic number and the encrypted random key to obtain a second result;
[0018] The second result is sent to the terminal, so that the terminal determines that the authentication between the vehicle computer and the terminal is completed each time based on the second result and the first result.
[0019] In a fourth aspect, an authentication device is provided, the device comprising:
[0020] A sending module, configured to send the authentication data of the terminal to the trusted server in response to the terminal establishing a communication connection with the trusted server for the first time, so that the trusted server encrypts the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key; wherein the authentication data includes a magic number and hardware information of the terminal;
[0021] A receiving module, used for receiving and storing the encrypted authentication data and the encrypted random key sent by the trusted server;
[0022] The decryption module is used to decrypt the encrypted hardware information in response to the communication request, and when the encrypted hardware information is successfully decrypted, complete the authentication between the terminal and the vehicle computer based on the stored encrypted magic number and the encrypted random key.
[0023] In a fifth aspect, an authentication device is provided, the device comprising:
[0024] A receiving module, configured to receive authentication data of the terminal sent by the terminal; wherein the authentication data is data information sent when the terminal is used for the first time and the terminal establishes a communication connection with the trusted server; the authentication data includes a magic number and hardware information of the terminal;
[0025] A generation module, used to generate random keys;
[0026] An encryption module, used to encrypt the authentication data and the random key respectively to obtain encrypted authentication data and encrypted random key;
[0027] The sending module is used to send the encrypted authentication data and the encrypted random key to the terminal so that the terminal stores the encrypted authentication data and the encrypted random key, and decrypts the encrypted hardware information in response to the communication request. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
[0028] In a sixth aspect, an authentication device is provided, the device comprising:
[0029] A receiving module, used for receiving the encrypted magic number and the encrypted random key sent by the terminal; wherein the encrypted magic number and the encrypted random key are stored in the terminal after the terminal communicates with the trusted server for the first time, and the encrypted magic number and the encrypted random key are obtained by encrypting the magic number sent by the trusted server to the terminal and the random key generated by the trusted server; and the encrypted magic number and the encrypted random key are sent to the vehicle computer by the terminal after successfully decrypting the encrypted hardware information and responding to the communication request;
[0030] A decryption module, used for decrypting the encrypted magic number and the encrypted random key to obtain a second result;
[0031] The sending module is used to send the second result to the terminal, so that the terminal determines that the authentication between the vehicle computer and the terminal is completed each time based on the second result and the first result.
[0032] In a seventh aspect, an authentication system is provided, the system comprising:
[0033] The terminal is configured to send authentication data of the terminal to the trusted server in response to the terminal establishing a communication connection with the trusted server for the first time;
[0034] The trusted server is used to generate a random key, and encrypt the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key, and send the encrypted authentication data and the encrypted random key to the terminal; wherein the authentication data includes a magic number and hardware information of the terminal;
[0035] The terminal is also used to receive and store the encrypted authentication data and the encrypted random key sent by the trusted server; and in response to a communication request, decrypt the encrypted hardware information. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
[0036] In an eighth aspect, an embodiment of the present application provides an authentication device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the authentication method described in any one of the embodiments of the present application.
[0037] In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the authentication method described in any one of the embodiments of the present application are implemented.
[0038] In an eighth aspect, an embodiment of the present application provides a vehicle, the vehicle comprising at least one of the following:
[0039] The authentication device as described in the fourth aspect, the fifth aspect or the sixth aspect;
[0040] The authentication device as described in the seventh aspect;
[0041] A computer-readable storage medium as described in the eighth aspect.
[0042] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0043] In the authentication method provided in the embodiment of the present application, when the terminal and the trusted server communicate for the first time, the trusted server receives the authentication data sent by the terminal, and then sends the encrypted authentication data and the encrypted random key to the terminal, and stores them in the terminal. In this way, after the terminal successfully decrypts the encrypted hardware information, each time the terminal communicates with the vehicle computer thereafter, the authentication can be completed directly from the encrypted magic number and the encrypted random key stored in the terminal. In this way, for each authentication between the terminal and the vehicle computer after the first time, the terminal only needs to communicate with the trusted server when it is used for the first time, and does not rely on the trusted server in subsequent work. The encrypted authentication data and the encrypted random key stored in the terminal can be used to complete the authentication. This avoids the problem of instability of the entire system caused by over-reliance on the trusted server, and achieves the effect of offline authentication between the terminal and the vehicle computer.
[0044] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0046] Figure 1 It is a structural diagram of an authentication system provided by an embodiment of the third aspect of the present application;
[0047] Figure 2 It is one of the flowcharts of an authentication method provided by the embodiment of the first aspect of the present application;
[0048] Figure 3 This is a second flow chart of an authentication method provided in an embodiment of the first aspect of the present application;
[0049] Figure 4 This is a flowchart of an authentication method provided by the first embodiment of the present application;
[0050] Figure 5 This is a fourth flowchart of an authentication method provided by an embodiment of the first aspect of the present application;
[0051] Figure 6 It is one of the structural schematic diagrams of an authentication device provided by an embodiment of the second aspect of the present application;
[0052] Figure 7 This is a second structural diagram of an authentication device provided by an embodiment of the second aspect of the present application;
[0053] Figure 8 This is a third structural diagram of an authentication device provided by an embodiment of the second aspect of the present application;
[0054] Fig. 9 It is a structural diagram of an authentication device provided in an embodiment of the third aspect of the present application. DETAILED DESCRIPTION
[0055] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0056] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0057] As described in the background technology section, in the prior art, when authenticating between the terminal and the vehicle computer, it strongly relies on a trusted server and cannot be applied to situations where the network is unreliable. In order to solve the above problems, the embodiments of the present application provide an authentication method, device, system, equipment, medium and vehicle. When the terminal communicates with the trusted server for the first time, the trusted server receives the authentication data sent by the terminal, and then sends the encrypted authentication data and the encrypted random key to the terminal and stores them in the terminal. In this way, after the terminal successfully decrypts the encrypted hardware information, each time the terminal communicates with the vehicle computer, the authentication can be completed directly from the encrypted magic number and the encrypted random key stored in the terminal. In this way, for each authentication between the terminal and the vehicle computer after the first time, the terminal only needs to communicate with the trusted server when it is used for the first time, and the subsequent work does not rely on the trusted server. The encrypted authentication data and the encrypted random key stored in the terminal can be used to complete the authentication. In this way, the problem of instability of the entire system caused by over-reliance on the trusted server is avoided, and the effect of offline authentication between the terminal and the vehicle computer is achieved.
[0058] The following is a detailed description of the authentication method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0059] Before introducing the authentication method provided in the embodiment of the present application, an authentication system for implementing the authentication method used in the embodiment of the present application is first introduced. The authentication system 100 may include: a terminal 110, a trusted server 120 and a vehicle computer 130.
[0060] The terminal 110 is used to send the authentication data of the terminal to the trusted server 120 in response to the terminal establishing a communication connection with the trusted server for the first time;
[0061] The trusted server 120 is used to generate a random key, encrypt the authentication data and the random key respectively, obtain the encrypted authentication data and the encrypted random key, and send the encrypted authentication data and the encrypted random key to the terminal;
[0062] The terminal 110 is also used to receive and store the encrypted authentication data and the encrypted random key sent by the trusted server; and in response to the communication request, decrypt the encrypted hardware information. When the encrypted hardware information is decrypted successfully, the authentication between the terminal 110 and the vehicle computer 130 is completed based on the stored encrypted magic number and the encrypted random key.
[0063] The terminal may be a terminal installed in a factory, which can be used as a host computer to control the vehicle computer. The terminal may be, but is not limited to, a tablet computer, a laptop computer, a desktop computer, or any combination thereof, of other devices with input and / or output functions.
[0064] The trusted server may be a server set between the terminal and the vehicle computer, and is used to generate a random key required for authentication between the terminal and the vehicle computer.
[0065] In some embodiments of the present application, the authentication data may be data used for authentication between the terminal and the vehicle computer. The authentication data may specifically include a magic number and hardware information of the terminal.
[0066] The magic number can be a numeric constant or a string in the terminal's program code.
[0067] The hardware information of the terminal may be information used to characterize the hardware status of the terminal, for example, hard disk information, memory information, etc. of the terminal, as long as it can be used to characterize the hardware status of the terminal.
[0068] The random key may be a key randomly generated by a trusted server and used to implement authentication between the terminal and the vehicle computer.
[0069] In some embodiments of the present application, after authentication between the terminal and the vehicle computer is passed, that is, after mutual identity recognition is passed, data transmission can be performed between the terminal and the vehicle computer.
[0070] In an embodiment of the present application, when the terminal is used for the first time and the terminal establishes a communication connection with a trusted server, the terminal sends the authentication data of the terminal to the trusted server, and the trusted server encrypts the authentication data and the random key to obtain the encrypted authentication data and the random key. When the terminal communicates with the vehicle computer, after the terminal successfully decrypts the encrypted hardware information, each time the terminal communicates with the vehicle computer thereafter, the authentication can be completed directly from the encrypted magic number and the encrypted random key stored in the terminal. In this way, for each authentication between the terminal and the vehicle computer after the first time, the terminal only needs to communicate with the trusted server at the first use, and does not rely on the trusted server in subsequent work. The encrypted authentication data and the encrypted random key stored in the terminal can be used to complete the authentication. This avoids the problem of instability of the entire system caused by over-reliance on the trusted server, and achieves the effect of offline authentication between the terminal and the vehicle computer.
[0071] The following is a detailed description based on the above Figure 1 The authentication method implemented by the authentication system in .
[0072] Figure 2 is a flowchart of an authentication method provided in an embodiment of the present application. The execution subject of the authentication method can be the above-mentioned Figure 1 Authentication system 100 in.
[0073] like Figure 2 As shown, the authentication method provided in the embodiment of the present application may include steps 1 to 11.
[0074] Step 1: During the development of the vehicle software and terminal software, their respective public keys are preset in them, and the corresponding private keys are held by the trusted server.
[0075] Step 2: When the terminal works for the first time, the terminal sends the authentication data of the terminal to the trusted server.
[0076] The authentication data includes the hardware information and magic number of the terminal.
[0077] Step 3: The trusted server encrypts the authentication data to obtain encrypted authentication data.
[0078] Step 4: The trusted server generates a random key, encrypts the random key, obtains the encrypted random key, and sends the encrypted authentication data and the encrypted random key to the terminal.
[0079] Step 5: The terminal stores the encrypted authentication data and the encrypted random key.
[0080] Step 6: The terminal decrypts the encrypted hardware information to obtain the decrypted hardware information, and then decrypts the encrypted magic number and the encrypted random key.
[0081] Step 7: The terminal sends the encrypted magic number and the encrypted random key to the vehicle computer.
[0082] Step 8: The vehicle computer decrypts the encrypted magic number and the encrypted random key.
[0083] Step 9: When the terminal determines that the magic number and random key after decryption are consistent with the magic number and random key before decryption, and the vehicle computer determines that the magic number and random key after decryption are consistent with the magic number and random key before decryption, the terminal sends the reservation information to the vehicle computer.
[0084] Step 10: The vehicle computer decrypts the reservation information and sends the decryption result to the terminal.
[0085] The predetermined information may be pre-set information for identity authentication between the vehicle computer and the terminal.
[0086] Step 11: When the terminal determines that the decryption result is that the predetermined information after decryption is consistent with the predetermined information before decryption, it is determined that the authentication between the vehicle computer and the terminal is completed.
[0087] Figure 3 is a flowchart of an authentication method provided in an embodiment of the present application. The execution subject of the authentication method can be the above-mentioned Figure 1 The terminal 110 in FIG.
[0088] It should be noted that, for the sake of brevity, the nouns and noun explanations in the embodiments of the present application that are the same as those in the above embodiments will not be repeated here.
[0089] like Figure 3 As shown, the authentication method provided in the embodiment of the present application may include steps 310 to 330.
[0090] Step 310: In response to the terminal establishing a communication connection with the trusted server for the first time, the terminal sends the authentication data of the terminal to the trusted server, so that the trusted server encrypts the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key.
[0091] The authentication data may include a magic number and hardware information of the terminal.
[0092] In some embodiments of the present application, when the terminal works for the first time, a communication connection may be established between the terminal and the trusted server, and then the terminal may send the authentication data to the trusted server.
[0093] Step 320: Receive and store the encrypted authentication data and the encrypted random key sent by the trusted server.
[0094] In some embodiments of the present application, after the trusted server encrypts the authentication data and the random key to obtain the encrypted authentication data and the encrypted random key, the encrypted authentication data and the encrypted random key can be sent to the terminal, and the terminal can receive the encrypted authentication data and the encrypted random key and store them in the terminal.
[0095] In some embodiments of the present application, after the trusted server sends the encrypted authentication data (i.e., the encrypted magic number and the encrypted hardware information) and the encrypted random key to the terminal respectively, the encrypted authentication data (i.e., the encrypted magic number and the encrypted hardware information) and the encrypted random key can be stored directly in the terminal or in a trusted medium on the terminal.
[0096] Step 330: In response to the communication request, the encrypted hardware information is decrypted. When the encrypted hardware information is successfully decrypted, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
[0097] The communication request may be a request for communication between the terminal and the vehicle computer. The notification request may be sent by the vehicle computer or by the terminal, which is not limited here.
[0098] In some embodiments of the present application, when communication is required between the vehicle computer and the terminal, the terminal may first decrypt the encrypted hardware information based on the communication request, and when it is determined that the encrypted hardware information is successfully decrypted, the authentication between the terminal and the vehicle computer may be completed based on the stored encrypted magic number and the encrypted random key. In this way, each subsequent authentication between the vehicle computer and the terminal may only be performed using the encrypted authentication data and the encrypted random key stored in the terminal.
[0099] In some embodiments of the present application, after receiving the authentication data sent by the terminal, the trusted server can generate a random key, and then the trusted server can encrypt the received authentication data and the generated random key respectively to obtain the encrypted authentication data and the encrypted random key.
[0100] In some embodiments of the present application, when the trusted server encrypts the authentication number and the random key, it performs encryption in two layers. The first layer of encryption encrypts the hardware information, and the second layer encrypts the magic number and the random key.
[0101] The first layer of encryption is used to verify the consistency of the terminal hardware information, so that the authentication data file is bound to the terminal; the second layer of encryption is used to encrypt and decrypt magic numbers and random keys to ensure the trustworthiness of both communicating parties.
[0102] In some embodiments of the present application, when the trusted server encrypts the authentication data and the random key, it may use the same encryption algorithm or different encryption algorithms. Specifically, it may use a symmetric encryption algorithm or an asymmetric encryption algorithm. It may also use other types of encryption algorithms. As long as the authentication data and the random key can be encrypted, they are protected by the embodiments of the present application.
[0103] In some embodiments of the present application, in order to accurately implement the authentication between the terminal and the vehicle computer, step 330 may specifically include:
[0104] Decrypting the stored encrypted magic number and the encrypted random key to obtain a first result;
[0105] Sending the stored encrypted magic number and the encrypted random key to the vehicle computer so that the vehicle computer decrypts the encrypted magic number and the encrypted random key to obtain a second result;
[0106] When it is determined that the first result is that the terminal determines that the magic number after decryption and the random key after decryption are respectively consistent with the magic number and the random key before decryption, and the second result is that the vehicle computer determines that the magic number after decryption and the random key after decryption are respectively consistent with the magic number and the random key before decryption, it is determined that the authentication between the vehicle computer and the terminal is completed.
[0107] The first result may be sent by the terminal to the trusted server. Specifically, the first result may be a result after the terminal decrypts the encrypted magic number and the encrypted random key.
[0108] The second result may be sent by the vehicle computer to the trusted server. Specifically, the second result may be a result after the vehicle computer decrypts the encrypted magic number and the encrypted random key.
[0109] In some embodiments of the present application, when the terminal decrypts the encrypted authentication data and the encrypted random key, it also performs decryption in two layers. First, the encrypted hardware information is decrypted. When it is determined that the encrypted hardware information is decrypted successfully, the encrypted random key and the encrypted magic number are decrypted.
[0110] The car computer has only one layer of decryption, which is the decryption of the encrypted magic number and the encrypted random key.
[0111] In an embodiment of the present application, the terminal can decrypt the stored encrypted magic number and the encrypted random key to obtain a first result, and then send the stored encrypted magic number and the encrypted random key to the vehicle computer, so that the vehicle computer decrypts the encrypted magic number and the encrypted random key to obtain a second result. When it is determined that the magic number and the decrypted random key after the terminal decryption are respectively consistent with the magic number and the random key before decryption, and the magic number and the decrypted random key after the vehicle computer decryption are respectively consistent with the magic number and the random key before decryption, it is determined that the authentication between the vehicle computer and the terminal is completed, so that the authentication between the vehicle computer and the terminal can be accurately realized.
[0112] In some embodiments of the present application, in order to further accurately implement the authentication between the vehicle computer and the terminal, the step of determining that the authentication between the vehicle computer and the terminal is completed may further include:
[0113] Sending the encrypted reservation information to the vehicle computer so that the vehicle computer decrypts the encrypted reservation information to obtain a decryption result;
[0114] Receive decryption result;
[0115] When it is determined that the decryption result is that the predetermined information after the decryption by the vehicle computer matches the predetermined information before the decryption, it is determined that the authentication between the vehicle computer and the terminal is completed.
[0116] The encrypted reservation information may be information sent to the vehicle after the terminal encrypts the reservation information. The reservation information here may be information preset by the terminal for authentication between the terminal and the vehicle. For example, it may be a code randomly generated by the terminal.
[0117] In some embodiments of the present application, after the terminal determines that its decrypted magic number and decrypted random key are respectively the same as the magic number and the random key before decryption, and the vehicle computer determines that its decrypted magic number and the random key after decryption are respectively the same as the magic number and the random key before decryption, the terminal can send an encrypted reservation information to the vehicle computer, and the vehicle computer decrypts the encrypted reservation information. When it is determined that the decrypted reservation information of the vehicle computer is consistent with the reservation information before decryption, it can be determined that the authentication between the vehicle computer and the terminal is completed.
[0118] In an embodiment of the present application, the encrypted predetermined information is sent to the vehicle computer so that the vehicle computer decrypts the encrypted predetermined information to obtain a decryption result. When it is determined that the decryption result is that the predetermined information after decryption by the vehicle computer matches the predetermined information before decryption, it is determined that the authentication between the vehicle computer and the terminal is completed, thereby further verifying the identity between the vehicle computer and the terminal and improving the accuracy of the authentication.
[0119] In some embodiments of the present application, in order to accurately implement the terminal to decrypt the encrypted magic number and the encrypted random key, the decryption of the stored encrypted magic number and the encrypted random key may specifically include:
[0120] The encrypted magic number and the encrypted random secret key are decrypted based on the preset first public key.
[0121] The first public key may be generated during the development of the terminal software and pre-set in the terminal.
[0122] In an embodiment of the present application, the encrypted magic number and the encrypted random key are decrypted by a preset first public key, so that the terminal can accurately decrypt the magic number and the random key.
[0123] In some embodiments of the present application, in order to further better understand the technical solution of the embodiments of the present application, the embodiments of the present application also provide another implementable method of the authentication method, refer to Figure 4 , Figure 4 is a flowchart of another authentication method provided in an embodiment of the present application. The execution subject of the authentication method can be the above-mentioned Figure 1 Optional server 120 in.
[0124] It should be noted that, for the sake of brevity, the nouns and noun explanations in the embodiments of the present application that are the same as those in the above embodiments will not be repeated here.
[0125] like Figure 4 As shown, the authentication method provided in the embodiment of the present application may include steps 410 to 440.
[0126] Step 410: Receive authentication data of the terminal sent by the terminal.
[0127] The authentication data is data information sent when the terminal is used for the first time and a communication connection is established between the terminal and the trusted server. The authentication data may include a magic number and hardware information of the terminal.
[0128] Step 420: Generate a random key.
[0129] Step 430: Encrypt the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key.
[0130] Step 440: Send the encrypted authentication data and the encrypted random key to the terminal so that the terminal stores the encrypted authentication data and the encrypted random key, and decrypts the encrypted hardware information in response to the communication request. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key. In an embodiment of the present application, when the terminal is used for the first time, the optional server receives the authentication data of the terminal sent by the terminal, then generates a random key, and encrypts the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key, and then sends the encrypted authentication data and the encrypted random key to the terminal, so that the terminal stores the encrypted authentication data and the encrypted random key, and decrypts the encrypted hardware information in response to the communication request. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key. In this way, for each authentication between the terminal and the vehicle computer after the first time, the terminal only needs to communicate with the trusted server when it is used for the first time, and does not rely on the trusted server in subsequent work. The encrypted authentication data and the encrypted random key stored in the terminal can be used directly to complete the authentication. This avoids the problem of instability of the entire system caused by over-reliance on the trusted server, and achieves the effect of offline authentication between the terminal and the vehicle computer.
[0131] In some embodiments of the present application, in order to further better understand the technical solution of the embodiments of the present application, the embodiments of the present application also provide another implementable method of the authentication method, refer to Figure 5 , Figure 5 is a flowchart of another authentication method provided in an embodiment of the present application. The execution subject of the authentication method can be the above-mentioned Figure 1 The car machine 130 in the.
[0132] It should be noted that, for the sake of brevity, the nouns and noun explanations in the embodiments of the present application that are the same as those in the above embodiments will not be repeated here.
[0133] like Figure 5 As shown, the authentication method provided in the embodiment of the present application may include steps 510 to 530.
[0134] Step 510: Receive the encrypted magic number and the encrypted random key sent by the terminal.
[0135] Among them, the encrypted magic number and the encrypted random key are stored in the terminal after the first communication between the terminal and the trusted server, the encrypted magic number and the encrypted random key are the magic number sent by the trusted server to the terminal, and the random key generated by the trusted server are encrypted; and the encrypted magic number and the encrypted random key are sent to the vehicle computer by the terminal after successfully decrypting the encrypted hardware information and responding to the communication request.
[0136] Step 520: decrypt the encrypted magic number and the encrypted random key to obtain a second result.
[0137] Step 530: Send the second result to the terminal, so that the terminal determines that each authentication between the vehicle computer and the terminal is completed based on the second result and the first result.
[0138] In an embodiment of the present application, the vehicle computer decrypts the stored encrypted magic number and the encrypted random key sent by the terminal. When the vehicle computer determines that the magic number and the decrypted random key after the vehicle computer decrypts are respectively consistent with the magic number and the random key before decryption, and the terminal determines that the magic number and the decrypted random key after the terminal decrypts are respectively consistent with the magic number and the random key before decryption, it can be determined that the authentication between the vehicle computer and the terminal is passed. In this way, for each authentication between the terminal and the vehicle computer after the first time, the terminal only needs to communicate with the trusted server when it is used for the first time, and does not rely on the trusted server in subsequent work. The encrypted authentication data and the encrypted random key stored in the terminal can be used to complete the authentication. This avoids the problem of instability of the entire system caused by over-reliance on the trusted server, and achieves the effect of offline authentication between the terminal and the vehicle computer.
[0139] In some embodiments of the present application, in order to accurately decrypt the encrypted magic number and random key, step 520 may specifically include:
[0140] The encrypted magic number and the encrypted random secret key are decrypted based on the preset second public key.
[0141] The second public key may be generated during the vehicle computer software development process and pre-set in the vehicle computer.
[0142] In an embodiment of the present application, the encrypted magic number and the encrypted random key are decrypted based on a preset second public key, so that the car computer can accurately decrypt the magic number and the random key.
[0143] It should be noted that the authentication method provided in the embodiment of the present application can be executed by an authentication device, or a control module in the authentication device for executing the authentication method.
[0144] Based on the same inventive concept as the above-mentioned authentication method, the present application also provides an authentication device. Figure 6 The authentication device provided in the embodiment of the present application is described in detail.
[0145] Figure 6 The figure is a schematic diagram showing the structure of an authentication device according to an exemplary embodiment.
[0146] like Figure 6 As shown, the authentication device 600 can be applied to a terminal, and the authentication device 600 can include:
[0147] The sending module 610 is used for sending the authentication data of the terminal to the trusted server in response to the terminal establishing a communication connection with the trusted server for the first time, so that the trusted server encrypts the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key; wherein the authentication data includes a magic number and the hardware information of the terminal;
[0148] The receiving module 620 is used to receive and store the encrypted authentication data and the encrypted random key sent by the trusted server;
[0149] The decryption module 630 is used to decrypt the encrypted hardware information in response to the communication request. When the encrypted hardware information is successfully decrypted, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
[0150] In an embodiment of the present application, when the terminal communicates with the trusted server for the first time, the trusted server receives the authentication data sent by the terminal, and then sends the encrypted authentication data and the encrypted random key to the terminal and stores them in the terminal. In this way, after the terminal successfully decrypts the encrypted hardware information, each time the terminal communicates with the vehicle computer thereafter, the authentication can be completed directly from the encrypted magic number and the encrypted random key stored in the terminal. In this way, for each authentication between the terminal and the vehicle computer after the first time, the terminal only needs to communicate with the trusted server when it is used for the first time, and does not rely on the trusted server in subsequent work. The encrypted authentication data and the encrypted random key stored in the terminal can be used to complete the authentication. This avoids the problem of instability of the entire system caused by over-reliance on the trusted server, and achieves the effect of offline authentication between the terminal and the vehicle computer.
[0151] In some embodiments of the present application, in order to further accurately implement the authentication between the terminal and the vehicle, the decryption module 630 may specifically include:
[0152] A first decryption unit, used to decrypt the stored encrypted magic number and the encrypted random key to obtain a first result;
[0153] A first sending unit, configured to send the stored encrypted magic number and the encrypted random key to the vehicle computer, so that the vehicle computer decrypts the encrypted magic number and the encrypted random key to obtain a second result;
[0154] The first determination unit is used to determine that the authentication between the vehicle computer and the terminal is completed when the first result is that the terminal determines that the magic number after decryption and the random key after decryption are respectively consistent with the magic number before decryption and the random key before decryption, and the second result is that the vehicle computer determines that the magic number after decryption and the random key after decryption are respectively consistent with the magic number before decryption and the random key before decryption.
[0155] In some embodiments of the present application, in order to further accurately implement the authentication between the terminal and the vehicle computer, the first determination unit may be specifically used to:
[0156] Sending the encrypted reservation information to the vehicle computer so that the vehicle computer decrypts the encrypted reservation information to obtain a decryption result;
[0157] receiving the decryption result;
[0158] When it is determined that the decryption result is that the predetermined information after the decryption of the vehicle computer matches the predetermined information before the decryption, it is determined that the authentication between the vehicle computer and the terminal is completed.
[0159] In some embodiments of the present application, in order to accurately decrypt the encrypted magic number and the encrypted random key, the first decryption unit may be specifically used to:
[0160] The encrypted magic number and the encrypted random key are decrypted based on a preset first public key; wherein the first public key is pre-set in the terminal during the development of the terminal software.
[0161] The authentication device provided in the embodiment of the present application can be used to execute the above-mentioned authentication method provided by the terminal as the execution subject. Its implementation principle and technical effect are similar, and for the sake of brief introduction, they will not be repeated here.
[0162] Figure 7 The figure is a schematic diagram showing the structure of an authentication device according to an exemplary embodiment.
[0163] like Figure 7 As shown, the authentication device 700 can be applied to a trusted server, and the authentication device 700 can include:
[0164] The receiving module 710 is used to receive authentication data of the terminal sent by the terminal; wherein the authentication data is data information sent when the terminal is used for the first time and the terminal establishes a communication connection with the trusted server; the authentication data includes a magic number and hardware information of the terminal;
[0165] A generating module 720, for generating a random key;
[0166] The encryption module 730 is used to encrypt the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key;
[0167] The sending module 740 is used to send the encrypted authentication data and the encrypted random key to the terminal, so that the terminal stores the encrypted authentication data and the encrypted random key, and decrypts the encrypted hardware information in response to the communication request. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
[0168] In an embodiment of the present application, when the terminal is used for the first time, the optional server receives the authentication data of the terminal sent by the terminal, then generates a random key, and encrypts the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key, and then sends the encrypted authentication data and the encrypted random key to the terminal, so that the terminal stores the encrypted authentication data and the encrypted random key, and decrypts the encrypted hardware information in response to the communication request. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key. In this way, for each authentication between the terminal and the vehicle computer after the first time, the terminal only needs to communicate with the trusted server when it is used for the first time, and does not rely on the trusted server in subsequent work. The encrypted authentication data and the encrypted random key stored in the terminal can be used directly to complete the authentication. This avoids the problem of instability of the entire system caused by over-reliance on the trusted server, and achieves the effect of offline authentication between the terminal and the vehicle computer.
[0169] The authentication device provided in the embodiment of the present application can be used to execute the above-mentioned authentication method provided by the trusted server as the execution subject. Its implementation principle and technical effect are similar, and for the sake of brief introduction, they will not be repeated here.
[0170] Figure 8 The figure is a schematic diagram showing the structure of an authentication device according to an exemplary embodiment.
[0171] like Figure 8 As shown, the authentication device 800 can be applied to a vehicle computer, and the authentication device 800 can include:
[0172] The receiving module 810 is used to receive the encrypted magic number and the encrypted random key sent by the terminal; wherein the encrypted magic number and the encrypted random key are stored in the terminal after the terminal communicates with the trusted server for the first time, and the encrypted magic number and the encrypted random key are obtained by encrypting the magic number sent by the trusted server to the terminal and the random key generated by the trusted server; and the encrypted magic number and the encrypted random key are sent to the vehicle computer by the terminal after successfully decrypting the encrypted hardware information and responding to the communication request;
[0173] A decryption module 820, configured to decrypt the encrypted magic number and the encrypted random key to obtain a second result;
[0174] The sending module 830 is used to send the second result to the terminal, so that the terminal determines that the authentication between the vehicle computer and the terminal is completed each time based on the second result and the first result.
[0175] In the embodiment of the present application, the vehicle computer decrypts the stored encrypted magic number and the encrypted random key sent by the terminal. When the vehicle computer determines that the magic number and the decrypted random key after the vehicle computer are respectively consistent with the magic number and the random key before decryption, and the terminal determines that the magic number and the decrypted random key after the terminal are respectively consistent with the magic number and the random key before decryption, it can be determined that the authentication between the vehicle computer and the terminal is passed. In this way, in each authentication between the terminal and the vehicle computer after the first time, the terminal only needs to communicate with the trusted server when it is used for the first time, and the subsequent work does not rely on the trusted server. The encrypted authentication data and the encrypted random key stored in the terminal can be directly used to complete the authentication. In this way, the problem of instability of the entire system caused by over-reliance on the trusted server is avoided, and the effect of offline authentication between the terminal and the vehicle computer is achieved. .
[0176] In some embodiments of the present application, in order to accurately decrypt the encrypted magic number and random key, the decryption module 820 may be specifically used to:
[0177] The encrypted magic number and the encrypted random key are decrypted based on a preset second public key; wherein the second public key is pre-set in the vehicle computer during the development of the vehicle computer software.
[0178] The authentication device provided in the embodiment of the present application can be used to execute the above-mentioned authentication method provided with the vehicle computer as the execution subject. Its implementation principle and technical effect are similar, and for the sake of brief introduction, they will not be repeated here.
[0179] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0180] Fig. 9 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device may include a processor 901 and a memory 902 storing computer programs or instructions.
[0181] Specifically, the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.
[0182] The memory 902 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 902 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 902 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 902 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 902 is a non-volatile solid-state memory. The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the authentication method provided in the above-mentioned embodiments.
[0183] The processor 901 implements any one of the authentication methods in the above embodiments by reading and executing computer program instructions stored in the memory 902 .
[0184] In one example, the electronic device may further include a communication interface 903 and a bus 910. Fig. 9 As shown, the processor 901, the memory 902, and the communication interface 903 are connected via a bus 910 and communicate with each other.
[0185] The communication interface 903 is mainly used to implement the communication between the modules, devices, units and / or devices in the embodiment of the present invention.
[0186] Bus 910 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 910 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0187] The electronic device can execute the authentication method in the embodiment of the present invention, thereby realizing the authentication method described in the above embodiments.
[0188] In addition, in combination with the authentication method in the above embodiment, the embodiment of the present invention can provide a readable storage medium for implementation. The readable storage medium stores program instructions; when the program instructions are executed by a processor, any one of the authentication methods in the above embodiment is implemented.
[0189] In addition, in combination with the authentication method in the above embodiment, the embodiment of the present invention can provide a vehicle for implementation. The vehicle includes the authentication device, authentication equipment and computer-readable storage medium in the above embodiment.
[0190] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0191] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0192] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0193] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0194] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0195] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. An authentication method, characterized in that: The method comprises: In response to the terminal establishing a communication connection with the trusted server for the first time, sending the authentication data of the terminal to the trusted server, so that the trusted server encrypts the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key; wherein the authentication data includes a magic number and hardware information of the terminal; Receiving and storing the encrypted authentication data and the encrypted random key sent by the trusted server; In response to the communication request, the encrypted hardware information is decrypted. When the encrypted hardware information is successfully decrypted, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
2. The method according to claim 1, characterized in that The authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key, including: Decrypting the stored encrypted magic number and the encrypted random key to obtain a first result; Sending the stored encrypted magic number and the encrypted random key to the vehicle computer, so that the vehicle computer decrypts the encrypted magic number and the encrypted random key to obtain a second result; When it is determined that the first result is that the terminal determines that the magic number after decryption and the random key after decryption are respectively consistent with the magic number and the random key before decryption, and the second result is that the vehicle computer determines that the magic number after decryption and the random key after decryption are respectively consistent with the magic number and the random key before decryption, it is determined that the authentication between the vehicle computer and the terminal is completed.
3. The method according to claim 2, characterized in that The determining that the authentication between the vehicle computer and the terminal is completed includes: Sending the encrypted reservation information to the vehicle computer so that the vehicle computer decrypts the encrypted reservation information to obtain a decryption result; receiving the decryption result; When it is determined that the decryption result is that the predetermined information after the decryption of the vehicle computer matches the predetermined information before the decryption, it is determined that the authentication between the vehicle computer and the terminal is completed.
4. The method according to claim 2, characterized in that: The decrypting of the stored encrypted magic number and the encrypted random key includes: The encrypted magic number and the encrypted random key are decrypted based on a preset first public key; wherein the first public key is pre-set in the terminal during the development of the terminal software.
5. An authentication method, characterized in that: The method comprises: Receive authentication data of the terminal sent by the terminal; wherein the authentication data is data information sent when the terminal is used for the first time and the terminal establishes a communication connection with the trusted server; the authentication data includes a magic number and hardware information of the terminal; Generate a random key; Encrypting the authentication data and the random key respectively to obtain encrypted authentication data and encrypted random key; The encrypted authentication data and the encrypted random key are sent to the terminal so that the terminal stores the encrypted authentication data and the encrypted random key, and decrypts the encrypted hardware information in response to the communication request. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
6. An authentication method, characterized in that: The method comprises: Receive the encrypted magic number and the encrypted random key sent by the terminal; wherein the encrypted magic number and the encrypted random key are stored in the terminal after the terminal communicates with the trusted server for the first time, and the encrypted magic number and the encrypted random key are obtained by encrypting the magic number sent by the trusted server to the terminal and the random key generated by the trusted server; and the encrypted magic number and the encrypted random key are sent to the vehicle computer by the terminal after successfully decrypting the encrypted hardware information and responding to the communication request; Decrypting the encrypted magic number and the encrypted random key to obtain a second result; The second result is sent to the terminal, so that the terminal determines that the authentication between the vehicle computer and the terminal is completed each time based on the second result and the first result.
7. The method according to claim 6, characterized in that The decrypting the encrypted magic number and the encrypted random key comprises: The encrypted magic number and the encrypted random key are decrypted based on a preset second public key; wherein the second public key is pre-set in the vehicle computer during the development of the vehicle computer software.
8. An authentication device, characterized in that: The device comprises: A sending module, configured to send the authentication data of the terminal to the trusted server in response to the terminal establishing a communication connection with the trusted server for the first time, so that the trusted server encrypts the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key; wherein the authentication data includes a magic number and hardware information of the terminal; A receiving module, used for receiving and storing the encrypted authentication data and the encrypted random key sent by the trusted server; The decryption module is used to decrypt the encrypted hardware information in response to the communication request, and when the encrypted hardware information is successfully decrypted, complete the authentication between the terminal and the vehicle computer based on the stored encrypted magic number and the encrypted random key.
9. An authentication device, characterized in that: The device comprises: A receiving module, configured to receive authentication data of the terminal sent by the terminal; wherein the authentication data is data information sent when the terminal is used for the first time and the terminal establishes a communication connection with the trusted server; the authentication data includes a magic number and hardware information of the terminal; A generation module, used to generate random keys; An encryption module, used to encrypt the authentication data and the random key respectively to obtain encrypted authentication data and encrypted random key; The sending module is used to send the encrypted authentication data and the encrypted random key to the terminal so that the terminal stores the encrypted authentication data and the encrypted random key, and decrypts the encrypted hardware information in response to the communication request. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
10. An authentication device, characterized in that: The device comprises: A receiving module, used for receiving the encrypted magic number and the encrypted random key sent by the terminal; wherein the encrypted magic number and the encrypted random key are stored in the terminal after the terminal communicates with the trusted server for the first time, and the encrypted magic number and the encrypted random key are obtained by encrypting the magic number sent by the trusted server to the terminal and the random key generated by the trusted server; and the encrypted magic number and the encrypted random key are sent to the vehicle computer by the terminal after successfully decrypting the encrypted hardware information and responding to the communication request; A decryption module, used for decrypting the encrypted magic number and the encrypted random key to obtain a second result; The sending module is used to send the second result to the terminal, so that the terminal determines that the authentication between the vehicle computer and the terminal is completed each time based on the second result and the first result.
11. An authentication system, characterized in that: The system comprises: The terminal is configured to send authentication data of the terminal to the trusted server in response to the terminal establishing a communication connection with the trusted server for the first time; The trusted server is used to generate a random key, and encrypt the authentication data and the random key respectively to obtain the encrypted authentication data and the encrypted random key, and send the encrypted authentication data and the encrypted random key to the terminal; wherein the authentication data includes a magic number and hardware information of the terminal; The terminal is also used to receive and store the encrypted authentication data and the encrypted random key sent by the trusted server; and in response to a communication request, decrypt the encrypted hardware information. When the encrypted hardware information is decrypted successfully, the authentication between the terminal and the vehicle computer is completed based on the stored encrypted magic number and the encrypted random key.
12. An authentication device, characterized in that: The information locating device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the authentication method as claimed in any one of claims 1 to 7 is implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the authentication method according to any one of claims 1 to 7 is implemented.
14. A vehicle, characterized in that: The vehicle includes at least one of the following: The authentication device as claimed in any one of claims 8 to 10; An authentication device as claimed in claim 12.
