Vehicle machine password random generation verification method, device and equipment and storage medium

By performing diagnostic access authentication on the model interface and dynamically generating vehicle passwords, combining explosion-proof and leakage protection, the existing vehicle encryption methods are easily cracked and password leaked, and the security of the vehicle system is improved efficiency.

CN118944878AActive Publication Date: 2024-11-12DONGFENG MOTOR GRP

Patent Information

Application Number
CN202411211316.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-12
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

The existing vehicle encryption methods are easily cracked illegally, lack password error protection mechanisms, resulting in password leakage and password verification personnel are not protected against leakage.

Method used

By performing diagnostic access authentication when entering the model interface of the after-sales diagnostic instrument, obtaining the diagnostic instrument password and vehicle password, and using the public key to decrypt and compare the passwords, dynamically generate vehicle passwords, setting explosion-proof mechanisms and leak-proof protections .

Benefits of technology

Effectively prevent the password of the car computer from being exploded, improve the security and reliability of the car computer system, simplify the password acquisition process, and improve the speed and efficiency of password generation and verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944878A_ABST
    Figure CN118944878A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle password random generation verification method, device and equipment and a storage medium, and the method comprises the steps: carrying out the diagnosis access authentication of a current vehicle through an after-sales diagnostic instrument when entering a vehicle model interface of the after-sales diagnostic instrument; after the access authentication is passed, acquiring a diagnostic apparatus password and a vehicle machine password; the diagnostic apparatus password is decrypted through a public key by utilizing a vehicle machine system to obtain a decryption result, the decryption result is compared with the vehicle machine password, and whether a vehicle machine engineering mode is started or not is determined according to a comparison result; according to the invention, the purposes of dynamic password generation and after-sales service of the vehicle-mounted terminal can be realized, the password of the vehicle-mounted terminal can be effectively prevented from being exploded, the vehicle-mounted terminal system is ensured not to be illegally entered, the safety and reliability of the vehicle-mounted terminal system are improved, and the speed and efficiency of random generation and verification of the password of the vehicle-mounted terminal are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent networked vehicle technology, and in particular to a method, device, equipment and storage medium for randomly generating and verifying a vehicle computer password. Background Art

[0002] With the development of intelligent connected vehicles, cars are facing more and more risks of information security attacks. Criminals can easily obtain personal information and user data stored in the car by illegally invading the car's computer system, and can even control or hold the vehicle hostage.

[0003] The existing car computer encryption method is to generate a secret key corresponding to the vehicle identification code VIN code based on the vehicle identification code VIN code and a preset password algorithm to encrypt the car computer. When the car computer is installed on the vehicle, the VIN code is used to generate the secret key, and the SN code of the car computer when it leaves the factory is automatically deleted. The secret key generated by the VIN code is used as the final password to achieve car computer encryption.

[0004] However, the existing vehicle computer encryption method has the following disadvantages: it only uses the VIN code as the only variable to generate the vehicle computer password, and the password generated based on the VIN is a fixed password, which is easy to be illegally cracked to obtain the password; the strength of the password generation algorithm is not clear, which is easy to be illegally cracked. After being cracked, the attacker can use the password algorithm to obtain the passwords of all vehicle computers; there is no password error protection mechanism, and the password is not protected against cracking, so the attacker can try the password unlimited times to obtain the correct password; the password verifier is not protected against password leakage, which can easily cause password leakage. Summary of the invention

[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for randomly generating and verifying a vehicle computer password, aiming to solve the technical problems in the prior art that the vehicle computer password is easily cracked illegally, and after being cracked, the attacker can use the cryptographic algorithm to obtain the passwords of all vehicle computers, lacks a password error protection mechanism, and is prone to password leakage.

[0006] In a first aspect, the present invention provides a method for randomly generating and verifying a vehicle computer password, the method comprising the following steps:

[0007] When entering the vehicle model interface of the after-sales diagnostic instrument, the diagnostic access authentication of the current vehicle is performed through the after-sales diagnostic instrument;

[0008] After the access authentication is passed, obtain the diagnostic instrument password and vehicle computer password;

[0009] The diagnostic instrument password is decrypted by the vehicle system through the public key to obtain a decryption result, the decryption result is compared with the vehicle password, and whether to start the vehicle engineering mode is determined according to the comparison result.

[0010] Optionally, when entering the vehicle model interface of the after-sales diagnostic instrument, performing diagnostic access authentication on the current vehicle through the after-sales diagnostic instrument includes:

[0011] Connect the after-sales diagnostic instrument to the OBD port of the current vehicle's on-board automatic diagnostic system;

[0012] When detecting that the after-sales diagnostic instrument is operated to enter the vehicle model interface, obtaining the certificate and the private key of the after-sales diagnostic instrument built in, and obtaining the root certificate built in the current vehicle and the public key corresponding to the private key of the diagnostic instrument;

[0013] The diagnostic access authentication of the current vehicle is performed through the certificate, the diagnostic instrument private key, the root certificate and the public key.

[0014] Optionally, the performing diagnostic access authentication on the current vehicle through the certificate, the diagnostic instrument private key, the root certificate and the public key includes:

[0015] Sending the certificate to the current vehicle through the after-sales diagnostic instrument, and the current vehicle performing a legitimacy check on the identity of the certificate according to the root certificate;

[0016] After the legality check is passed, the current vehicle sends a 32-byte random number to the after-sales diagnostic instrument;

[0017] Encrypting the random number using the after-sales diagnostic instrument according to the diagnostic instrument private key to obtain encrypted data;

[0018] The encrypted data is sent to the current vehicle through the after-sales diagnostic instrument, and the current vehicle decrypts the encrypted data using the public key;

[0019] When the encrypted data is identical to the random number, it is determined that the access authentication is successful, and a session key is generated at the same time.

[0020] Optionally, after the access authentication is passed, obtaining the diagnostic instrument password and the vehicle computer password includes:

[0021] After the access authentication is passed, in response to the vehicle computer password request of the after-sales diagnostic instrument, a password request instruction of the vehicle computer password request is sent to the current vehicle;

[0022] After the vehicle computer password generation system of the current vehicle receives the password request instruction, the password generation system executes the password generation to obtain the vehicle computer password;

[0023] The vehicle system of the current vehicle encrypts the three parameters of the true random number, VIN and PDSN using a public key, and sends the encrypted parameters to the after-sales diagnostic instrument;

[0024] The after-sales diagnostic instrument generates a diagnostic instrument password according to the encryption parameters.

[0025] Optionally, after the vehicle computer password generation system of the current vehicle receives the password request instruction, the password generation is performed to obtain the vehicle computer password, including:

[0026] After the vehicle computer password generation system of the current vehicle receives the password request instruction, a random number generator generates a true random number;

[0027] Obtaining a vehicle identification code VIN of the current vehicle, and using the vehicle computer password generation system to perform a hash algorithm on the VIN to obtain a first hash value;

[0028] Obtaining the packet data service node PDSN of the current vehicle, and obtaining a second hash value by performing a hash algorithm on the PDSN through the vehicle password generation system;

[0029] The true random number, the first hash value and the second hash value are encrypted using a preset encryption algorithm to dynamically generate a vehicle computer password.

[0030] Optionally, generating a diagnostic instrument password according to the encryption parameter by the after-sales diagnostic instrument includes:

[0031] Decrypting the encrypted parameters by the after-sales diagnostic instrument using a private key of the diagnostic instrument to obtain decrypted parameters;

[0032] The decrypted VIN code in the decryption parameter is subjected to the hash algorithm to obtain a third hash value;

[0033] The decrypted PDSN code in the decryption parameter is subjected to the hash algorithm to obtain a fourth hash value;

[0034] The decrypted true random number in the decryption parameter, the third Hash value and the fourth Hash value are encrypted using the preset encryption algorithm to generate a diagnostic instrument password.

[0035] Optionally, the using the vehicle system to decrypt the diagnostic instrument password by using a public key to obtain a decryption result, comparing the decryption result with the vehicle password, and determining whether to start the vehicle engineering mode according to the comparison result, includes:

[0036] Encrypting the diagnostic instrument password by using the after-sales diagnostic instrument private key to obtain the encrypted diagnostic instrument password, and sending the encrypted diagnostic instrument password to the current vehicle;

[0037] Decrypting the encrypted diagnostic instrument password by using a public key through the vehicle computer system of the current vehicle to obtain a decryption result;

[0038] The decryption result is compared with the vehicle computer password by a password comparison module to obtain a comparison result;

[0039] When the comparison result shows that the decryption result is the same as the vehicle computer password, starting the vehicle computer engineering mode;

[0040] When the comparison result is that the decryption result is different from the vehicle computer password, and the number of password comparison errors within the preset anti-explosion time reaches a preset number threshold, the vehicle computer engineering mode is not turned on within the preset stop password comparison time.

[0041] In a second aspect, in order to achieve the above-mentioned purpose, the present invention further proposes a vehicle computer password random generation and verification device, the vehicle computer password random generation and verification device comprising:

[0042] An access authentication module, used to perform diagnostic access authentication on the current vehicle through the after-sales diagnostic instrument when entering the vehicle model interface of the after-sales diagnostic instrument;

[0043] The password acquisition module is used to obtain the diagnostic instrument password and vehicle computer password after the access authentication is passed;

[0044] The verification and comparison module is used to use the vehicle system to decrypt the diagnostic instrument password through the public key, obtain the decryption result, compare the decryption result with the vehicle password, and determine whether to start the vehicle engineering mode according to the comparison result.

[0045] In the third aspect, to achieve the above-mentioned purpose, the present invention also proposes a vehicle-computer password random generation and verification device, the vehicle-computer password random generation and verification device comprising: a memory, a processor, and a vehicle-computer password random generation and verification program stored in the memory and executable on the processor, the vehicle-computer password random generation and verification program being configured to implement the steps of the vehicle-computer password random generation and verification method as described above.

[0046] In a fourth aspect, in order to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a vehicle computer password random generation and verification program is stored, and when the vehicle computer password random generation and verification program is executed by a processor, the steps of the vehicle computer password random generation and verification method as described above are implemented.

[0047] The method for randomly generating and verifying a vehicle computer password proposed in the present invention performs diagnostic access authentication on the current vehicle through the after-sales diagnostic instrument when entering the vehicle model interface of the after-sales diagnostic instrument; after the access authentication is passed, the diagnostic instrument password and the vehicle computer password are obtained; the diagnostic instrument password is decrypted by the vehicle computer system through a public key to obtain a decryption result, the decryption result is compared with the vehicle computer password, and it is determined whether to turn on the vehicle computer engineering mode according to the comparison result; the dynamic password generation of the vehicle computer can be realized, the after-sales service can easily obtain the password, the vehicle computer password can be effectively prevented from being cracked, and the vehicle computer system is ensured not to be illegally entered, thereby improving the security and reliability of the vehicle computer system and improving the speed and efficiency of the random generation and verification of the vehicle computer password. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention;

[0049] Figure 2 This is a flow chart of a first embodiment of a method for randomly generating and verifying a vehicle computer password according to the present invention;

[0050] Figure 3 This is a flow chart of a second embodiment of a method for randomly generating and verifying a vehicle computer password according to the present invention;

[0051] Figure 4 This is a flow chart of a third embodiment of a method for randomly generating and verifying a vehicle computer password according to the present invention;

[0052] Figure 5 This is a flow chart of a fourth embodiment of a method for randomly generating and verifying a vehicle computer password according to the present invention;

[0053] Figure 6 A schematic diagram of the interaction between the diagnostic instrument and the vehicle computer system in the vehicle computer password random generation verification method of the present invention;

[0054] Figure 7 This is a flow chart of a fifth embodiment of a method for randomly generating and verifying a vehicle computer password according to the present invention;

[0055] Figure 8 This is a functional module diagram of the first embodiment of the vehicle computer password random generation and verification device of the present invention.

[0056] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0057] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0058] The solution of the embodiment of the present invention is mainly: when entering the vehicle model interface of the after-sales diagnostic instrument, the after-sales diagnostic instrument is used to perform diagnostic access authentication on the current vehicle; after the access authentication is passed, the diagnostic instrument password and the vehicle computer password are obtained; the diagnostic instrument password is decrypted by the vehicle computer system through the public key to obtain the decryption result, the decryption result is compared with the vehicle computer password, and it is determined whether to turn on the vehicle computer engineering mode according to the comparison result; it can realize the dynamic password generation of the automobile vehicle computer, and the after-sales service can easily obtain the password. It can effectively prevent the vehicle computer password from being blasted, ensure that the vehicle computer system will not be illegally entered, improve the security and reliability of the vehicle computer system, and improve the speed and efficiency of random generation and verification of the vehicle computer password, and solve the technical problems in the prior art that the vehicle computer password is easily illegally cracked, and after being cracked, the password of all vehicle computers can be obtained by attackers using the password algorithm, and there is a lack of password error protection mechanism, which is easy to cause password leakage.

[0059] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.

[0060] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory, or it may be a stable memory (Non-Volatile Memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0061] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0062] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating device, a network communication module, a user interface module, and a vehicle computer password random generation verification program.

[0063] The device of the present invention calls the random generation verification program of the vehicle machine password stored in the memory 1005 through the processor 1001, and performs the following operations:

[0064] When entering the vehicle model interface of the after-sales diagnostic instrument, the diagnostic access authentication of the current vehicle is performed through the after-sales diagnostic instrument;

[0065] After the access authentication is passed, obtain the diagnostic instrument password and vehicle computer password;

[0066] The diagnostic instrument password is decrypted by the vehicle system through the public key to obtain a decryption result, the decryption result is compared with the vehicle password, and whether to start the vehicle engineering mode is determined according to the comparison result.

[0067] The device of the present invention calls the random generation verification program of the vehicle machine password stored in the memory 1005 through the processor 1001, and also performs the following operations:

[0068] Connect the after-sales diagnostic instrument to the OBD port of the current vehicle's on-board automatic diagnostic system;

[0069] When detecting that the after-sales diagnostic instrument is operated to enter the vehicle model interface, obtaining the certificate and the private key of the after-sales diagnostic instrument built in, and obtaining the root certificate built in the current vehicle and the public key corresponding to the private key of the diagnostic instrument;

[0070] The diagnostic access authentication of the current vehicle is performed through the certificate, the diagnostic instrument private key, the root certificate and the public key.

[0071] The device of the present invention calls the random generation verification program of the vehicle machine password stored in the memory 1005 through the processor 1001, and also performs the following operations:

[0072] Sending the certificate to the current vehicle through the after-sales diagnostic instrument, and the current vehicle performing a legitimacy check on the identity of the certificate according to the root certificate;

[0073] After the legality check is passed, the current vehicle sends a 32-byte random number to the after-sales diagnostic instrument;

[0074] Encrypting the random number using the after-sales diagnostic instrument according to the diagnostic instrument private key to obtain encrypted data;

[0075] The encrypted data is sent to the current vehicle through the after-sales diagnostic instrument, and the current vehicle decrypts the encrypted data using the public key;

[0076] When the encrypted data is identical to the random number, it is determined that the access authentication is successful, and a session key is generated at the same time.

[0077] The device of the present invention calls the random generation verification program of the vehicle machine password stored in the memory 1005 through the processor 1001, and also performs the following operations:

[0078] After the access authentication is passed, in response to the vehicle computer password request of the after-sales diagnostic instrument, a password request instruction of the vehicle computer password request is sent to the current vehicle;

[0079] After the vehicle computer password generation system of the current vehicle receives the password request instruction, the password generation system executes the password generation to obtain the vehicle computer password;

[0080] The vehicle system of the current vehicle encrypts the three parameters of the true random number, VIN and PDSN using a public key, and sends the encrypted parameters to the after-sales diagnostic instrument;

[0081] The after-sales diagnostic instrument generates a diagnostic instrument password according to the encryption parameters.

[0082] The device of the present invention calls the random generation verification program of the vehicle machine password stored in the memory 1005 through the processor 1001, and also performs the following operations:

[0083] After the vehicle computer password generation system of the current vehicle receives the password request instruction, a random number generator generates a true random number;

[0084] Obtaining a vehicle identification code VIN of the current vehicle, and using the vehicle computer password generation system to perform a hash algorithm on the VIN to obtain a first hash value;

[0085] Obtaining the packet data service node PDSN of the current vehicle, and obtaining a second hash value by performing a hash algorithm on the PDSN through the vehicle password generation system;

[0086] The true random number, the first hash value and the second hash value are encrypted using a preset encryption algorithm to dynamically generate a vehicle computer password.

[0087] The device of the present invention calls the random generation verification program of the vehicle machine password stored in the memory 1005 through the processor 1001, and also performs the following operations:

[0088] Decrypting the encrypted parameters by the after-sales diagnostic instrument using a private key of the diagnostic instrument to obtain decrypted parameters;

[0089] The decrypted VIN code in the decryption parameter is subjected to the hash algorithm to obtain a third hash value;

[0090] The decrypted PDSN code in the decryption parameter is subjected to the hash algorithm to obtain a fourth hash value;

[0091] The decrypted true random number in the decryption parameter, the third Hash value and the fourth Hash value are encrypted using the preset encryption algorithm to generate a diagnostic instrument password.

[0092] The device of the present invention calls the random generation verification program of the vehicle machine password stored in the memory 1005 through the processor 1001, and also performs the following operations:

[0093] Encrypting the diagnostic instrument password by using the after-sales diagnostic instrument private key to obtain the encrypted diagnostic instrument password, and sending the encrypted diagnostic instrument password to the current vehicle;

[0094] Decrypting the encrypted diagnostic instrument password by using a public key through the vehicle computer system of the current vehicle to obtain a decryption result;

[0095] The decryption result is compared with the vehicle computer password by a password comparison module to obtain a comparison result;

[0096] When the comparison result shows that the decryption result is the same as the vehicle computer password, starting the vehicle computer engineering mode;

[0097] When the comparison result is that the decryption result is different from the vehicle computer password, and the number of password comparison errors within the preset anti-explosion time reaches a preset number threshold, the vehicle computer engineering mode is not turned on within the preset stop password comparison time.

[0098] Through the above scheme, this embodiment performs diagnostic access authentication on the current vehicle through the after-sales diagnostic instrument when entering the vehicle model interface of the after-sales diagnostic instrument; after the access authentication is passed, the diagnostic instrument password and the vehicle computer password are obtained; the diagnostic instrument password is decrypted by the vehicle computer system through the public key to obtain the decryption result, the decryption result is compared with the vehicle computer password, and it is determined whether to turn on the vehicle computer engineering mode according to the comparison result; the dynamic password generation of the vehicle computer can be realized, and the after-sales service can easily obtain the password, which can effectively prevent the vehicle computer password from being cracked, ensure that the vehicle computer system will not be illegally entered, improve the security and reliability of the vehicle computer system, and improve the speed and efficiency of random generation and verification of the vehicle computer password.

[0099] Based on the above hardware structure, an embodiment of a method for randomly generating and verifying a vehicle computer password of the present invention is proposed.

[0100] Reference Figure 2 , Figure 2 This is a flow chart of the first embodiment of the vehicle computer password random generation and verification method of the present invention.

[0101] In the first embodiment, the vehicle computer password random generation verification method includes the following steps:

[0102] Step S10: When entering the vehicle model interface of the after-sales diagnostic instrument, the after-sales diagnostic instrument is used to perform diagnostic access authentication on the current vehicle.

[0103] It should be noted that when entering the vehicle model interface of the after-sales diagnostic instrument, you can start the diagnostic access authentication of the after-sales diagnostic instrument and the current vehicle.

[0104] Step S20: After the access authentication is passed, the diagnostic instrument password and the vehicle computer password are obtained.

[0105] It should be understood that after the access authentication is passed, the diagnostic instrument password of the after-sales diagnostic instrument and the vehicle computer password of the vehicle computer system of the current vehicle can be obtained.

[0106] Step S30: Decrypt the diagnostic instrument password using the public key of the vehicle system to obtain a decryption result, compare the decryption result with the vehicle password, and determine whether to start the vehicle engineering mode according to the comparison result.

[0107] It can be understood that the diagnostic instrument password can be decrypted by the public key using the vehicle system of the current vehicle to obtain a decryption result, and then the decryption result is compared with the vehicle password to obtain a corresponding comparison result, and then it is determined whether to turn on the vehicle engineering mode based on the comparison result.

[0108] Through the above scheme, this embodiment performs diagnostic access authentication on the current vehicle through the after-sales diagnostic instrument when entering the vehicle model interface of the after-sales diagnostic instrument; after the access authentication is passed, the diagnostic instrument password and the vehicle computer password are obtained; the diagnostic instrument password is decrypted by the vehicle computer system through the public key to obtain the decryption result, the decryption result is compared with the vehicle computer password, and it is determined whether to turn on the vehicle computer engineering mode according to the comparison result; the dynamic password generation of the vehicle computer can be realized, and the after-sales service can easily obtain the password, which can effectively prevent the vehicle computer password from being cracked, ensure that the vehicle computer system will not be illegally entered, improve the security and reliability of the vehicle computer system, and improve the speed and efficiency of random generation and verification of the vehicle computer password.

[0109] Further, Figure 3 FIG. 1 is a flow chart of a second embodiment of a random vehicle password generation and verification method according to the present invention. Figure 3 As shown, based on the first embodiment, a second embodiment of the vehicle computer password random generation verification method of the present invention is proposed. In this embodiment, the step S10 specifically includes the following steps:

[0110] Step S11, connecting the after-sales diagnostic instrument to the OBD port of the on-board automatic diagnostic system of the current vehicle.

[0111] It should be noted that access authentication requires the after-sales diagnostic instrument to be connected to the On-Board Diagnostics (OBD) port of the current vehicle.

[0112] Step S12: when it is detected that the after-sales diagnostic instrument is operated to enter the vehicle model interface, the certificate and private key of the after-sales diagnostic instrument are obtained, and the root certificate and public key corresponding to the private key of the diagnostic instrument are obtained.

[0113] It can be understood that when the operation is performed on the diagnostic instrument interface to enter the vehicle model interface, the after-sales diagnostic instrument and the vehicle begin diagnostic access authentication, the diagnostic instrument has a built-in certificate and private key, and the vehicle has a built-in root certificate and a public key corresponding to the diagnostic instrument private key; when it is detected that the after-sales diagnostic instrument is operated to enter the vehicle model interface, the built-in certificate and private key of the after-sales diagnostic instrument can be obtained, and the built-in root certificate of the current vehicle and the public key corresponding to the diagnostic instrument private key can be obtained.

[0114] Step S13: performing diagnostic access authentication on the current vehicle through the certificate, the diagnostic instrument private key, the root certificate and the public key.

[0115] It should be understood that the diagnostic access authentication of the current vehicle is performed through the certificate, the diagnostic instrument private key, the root certificate and the public key.

[0116] Through the above scheme, this embodiment connects the after-sales diagnostic instrument to the OBD port of the on-board automatic diagnostic system of the current vehicle; when it is detected that the after-sales diagnostic instrument is operated to enter the vehicle model interface, the certificate and the diagnostic instrument private key built into the after-sales diagnostic instrument are obtained, and the root certificate built into the current vehicle and the public key corresponding to the diagnostic instrument private key are obtained; the diagnostic access authentication of the current vehicle is performed through the certificate, the diagnostic instrument private key, the root certificate and the public key, which can effectively prevent the vehicle computer password from being cracked, ensure that the vehicle computer system will not be illegally entered, improve the security and reliability of the vehicle computer system, and improve the speed and efficiency of random generation and verification of the vehicle computer password.

[0117] Further, Figure 4 FIG. 1 is a flow chart of a third embodiment of a method for randomly generating and verifying a vehicle computer password according to the present invention. Figure 4 As shown, a third embodiment of the vehicle computer password random generation verification method of the present invention is proposed based on the second embodiment. In this embodiment, the step S13 specifically includes the following steps:

[0118] Step S131: sending the certificate to the current vehicle through the after-sales diagnostic instrument, and the current vehicle verifies the legitimacy of the identity of the certificate according to the root certificate.

[0119] It should be noted that, by sending the certificate to the current vehicle via the after-sales diagnostic instrument, the legitimacy of the identity of the certificate can be verified based on the root certificate.

[0120] In the specific implementation, the communication between the diagnostic instrument and the vehicle adopts the CANFD format and integrates SecOC. SecOC uses the AES-128-CMAC algorithm to ensure the authenticity and integrity of the communication. The diagnostic instrument sends a certificate to the vehicle, and the vehicle verifies the legitimacy of the certificate.

[0121] Step S132: After the legality check is passed, the current vehicle sends a 32-byte random number to the after-sales diagnostic instrument.

[0122] It can be understood that after the verification is passed, the vehicle sends a 32-byte random number to the diagnostic instrument, that is, after the legality verification is passed, the current vehicle sends a 32-byte random number to the after-sales diagnostic instrument.

[0123] Step S133: encrypt the random number using the after-sales diagnostic instrument according to the diagnostic instrument private key to obtain encrypted data.

[0124] It should be understood that the after-sales diagnostic instrument can encrypt the random number according to the private key of the diagnostic instrument to obtain encrypted data.

[0125] Step S134: sending the encrypted data to the current vehicle via the after-sales diagnostic instrument, and the current vehicle decrypting the encrypted data using the public key.

[0126] It can be understood that the encrypted data can be sent to the current vehicle via the after-sales diagnostic instrument, and the current vehicle uses the public key to decrypt the encrypted data.

[0127] In the specific implementation, after the diagnostic instrument receives the 32-byte random number b, it encrypts the random number with a private key to obtain data, and the private key algorithm is RSA2048 and SHA256.

[0128] Step S135: When the encrypted data is the same as the random number, it is determined that the access authentication is successful, and a session key is generated.

[0129] It should be understood that when the encrypted data is identical to the random number, it can be determined that the access authentication is successful, and a session key is generated at the same time.

[0130] Through the above scheme, this embodiment sends the certificate to the current vehicle through the after-sales diagnostic instrument, and the current vehicle verifies the legitimacy of the identity of the certificate according to the root certificate; after the legitimacy verification is passed, the current vehicle sends a 32-byte random number to the after-sales diagnostic instrument; the random number is encrypt by the after-sales diagnostic instrument according to the diagnostic instrument private key to obtain encrypted data; the encrypted data is sent to the current vehicle through the after-sales diagnostic instrument, and the current vehicle decrypts the encrypted data using the public key; when the encrypted data is the same as the random number, it is determined that the access authentication is passed, and a session key is generated at the same time, which can effectively prevent the vehicle computer password from being cracked, ensure that the vehicle computer system will not be illegally entered, improve the security and reliability of the vehicle computer system, and improve the speed and efficiency of random generation and verification of the vehicle computer password.

[0131] Further, Figure 5 FIG. 4 is a flow chart of a fourth embodiment of a random vehicle password generation and verification method according to the present invention. Figure 5 As shown, a fourth embodiment of the vehicle computer password random generation verification method of the present invention is proposed based on the first embodiment. In this embodiment, the step S20 specifically includes the following steps:

[0132] Step S21, after the access authentication is passed, in response to the vehicle computer password request of the after-sales diagnostic instrument, a password request instruction of the vehicle computer password request is sent to the current vehicle.

[0133] It should be noted that after the access authentication is passed, the password request instruction of the vehicle computer password request can be sent to the current vehicle in response to the vehicle computer password request of the after-sales diagnostic instrument.

[0134] In a specific implementation, the after-sales diagnostic instrument is connected to the OBD port of the car, and the vehicle computer password request is operated on the diagnostic instrument interface. The diagnostic instrument sends the password request instruction to the entire vehicle through the OBD port of the entire vehicle.

[0135] Step S22: After the vehicle computer password generation system of the current vehicle receives the password request instruction, it executes password generation to obtain the vehicle computer password.

[0136] It can be understood that after the vehicle computer password generation system of the current vehicle receives the password request instruction, it performs a password generation operation to obtain the vehicle computer password.

[0137] Furthermore, the step S22 specifically includes the following steps:

[0138] After the vehicle computer password generation system of the current vehicle receives the password request instruction, a random number generator generates a true random number;

[0139] Obtaining a vehicle identification code VIN of the current vehicle, and using the vehicle computer password generation system to perform a hash algorithm on the VIN to obtain a first hash value;

[0140] Obtaining the packet data service node PDSN of the current vehicle, and obtaining a second hash value by performing a hash algorithm on the PDSN through the vehicle password generation system;

[0141] The true random number, the first hash value and the second hash value are encrypted using a preset encryption algorithm to dynamically generate a vehicle computer password.

[0142] It should be understood that after receiving the password request instruction, the password generation system of the vehicle system performs password generation:

[0143] A true random number A is generated by a random number generator (the random number A generated each time it is triggered is different);

[0144] The password generation system uses the vehicle identification code VIN as a parameter and obtains a hash value B through a hash algorithm (SHA256), where B = HASH (VIN);

[0145] The password generation system uses the vehicle identification code PDSN code as a parameter and obtains a hash value C through a hash algorithm (SHA256), where C = HASH (PDSN);

[0146] Use the AES-128-CFB algorithm to take the true random number A, hash value B and hash value C as parameters to calculate the password Key, Key = AES128[A, B, C], where A is the encryption object, B is the key, and C is the initialization vector.

[0147] Each time the vehicle system receives a password request, it generates a random number A. Therefore, the Key value generated each time is different.

[0148] Step S23: encrypt the three parameters of the true random number, VIN and PDSN generated by the vehicle computer system of the current vehicle using the public key, and send the encrypted parameters to the after-sales diagnostic instrument.

[0149] It should be understood that the generated true random number, vehicle identification number (VIN) and packet data serving node (PDSN) can be encrypted with a public key through the vehicle system of the current vehicle, and then the encrypted encryption parameters can be sent to the after-sales diagnostic instrument.

[0150] Step S24: Generate a diagnostic instrument password using the after-sales diagnostic instrument according to the encryption parameters.

[0151] It is understandable that the after-sales diagnostic instrument can generate a diagnostic instrument password based on the encryption parameters.

[0152] Furthermore, the step S24 specifically includes the following steps:

[0153] Decrypting the encrypted parameters by the after-sales diagnostic instrument using a private key of the diagnostic instrument to obtain decrypted parameters;

[0154] The decrypted VIN code in the decryption parameter is subjected to the hash algorithm to obtain a third hash value;

[0155] The decrypted PDSN code in the decryption parameter is subjected to the hash algorithm to obtain a fourth hash value;

[0156] The decrypted true random number in the decryption parameter, the third Hash value and the fourth Hash value are encrypted using the preset encryption algorithm to generate a diagnostic instrument password.

[0157] In the specific implementation, see Figure 6 , Figure 6 Schematic diagram of the interaction between the diagnostic instrument and the vehicle system in the vehicle password random generation verification method of the present invention, such as Figure 6 As shown, the hash algorithm is a secure hash algorithm, which is a family of cryptographic hash functions and a secure hash algorithm certified by FIPS. The VIN and PDSN of each car are different, and the true random number generated each time is also different; therefore, the password Key value calculated by the secure hash algorithm using three different variables is different each time, and the car computer password is a dynamic password, which increases the difficulty of being cracked.

[0158] Access authentication: The after-sales diagnostic instrument is connected to the OBD port of the car, and the vehicle model interface is entered on the diagnostic instrument interface. The after-sales diagnostic instrument and the vehicle begin diagnostic access authentication. The diagnostic instrument has a built-in certificate and private key, and the vehicle has a built-in root certificate and a public key corresponding to the private key of the diagnostic instrument.

[0159] a. The communication between the diagnostic instrument and the vehicle adopts the CANFD format and integrates SecOC, which uses the AES-128-CMAC algorithm to ensure the authenticity and integrity of the communication;

[0160] b. The diagnostic instrument sends a certificate to the vehicle, and the vehicle verifies the legitimacy of the certificate;

[0161] c. After verification, the vehicle sends a 32-byte random number a to the diagnostic instrument;

[0162] d. After receiving the 32-byte random number b, the diagnostic instrument encrypts the random number with the private key to obtain data a′. The private key algorithm is RSA2048 and SHA256;

[0163] e. The diagnostic instrument sends the encrypted data b′ to the vehicle, and the vehicle uses the public key to decrypt the data. If a′=a, the authentication is successful, and a session key is generated and sent to the diagnostic instrument.

[0164] f. The subsequent communication process uses the session key as the key of SecOC.

[0165] ② Password request: The after-sales diagnostic instrument is connected to the OBD port of the car, and the vehicle computer password request is operated on the diagnostic instrument interface. The diagnostic instrument sends the password request command to the vehicle through the OBD port of the vehicle.

[0166] After receiving the password request, the vehicle system will encrypt the three parameters of the generated true random number A, VIN, and PDSN using the public key, and send the encrypted true random number A1, VIN1, and PDSN1 to the diagnostic instrument.

[0167] a. The diagnostic instrument decrypts the three received parameters using the private key to obtain true random numbers A2, VIN2, and PDSN2;

[0168] b. Take the vehicle identification code VIN2 as a parameter and obtain the hash value B2 through the hash algorithm (SHA256), where B2 = HASH (VIN2);

[0169] c. The vehicle identification code PDSN2 is used as a parameter and a hash value C2 is obtained through a hash algorithm (SHA256), where C = HASH (PDSN2);

[0170] d. Use the AES-128-CFB algorithm to calculate the password Key2 using the true random number A2, hash value B2 and hash value C2 as parameters. Key2 = AES128[A2, B2, C2], where A2 is the encryption object, B2 is the key, and C2 is the initialization vector;

[0171] e. The diagnostic instrument encrypts the generated Key2 with the private key to obtain Key3, and sends Key3 to the vehicle.

[0172] Through the above scheme, this embodiment responds to the vehicle password request of the after-sales diagnostic instrument after the access authentication is passed, and sends the password request instruction of the vehicle password request to the current vehicle; after the vehicle password generation system of the current vehicle receives the password request instruction, it executes password generation to obtain the vehicle password; the three parameters of the true random number, VIN and PDSN generated by the vehicle system of the current vehicle are encrypted using the public key, and the encrypted parameters are sent to the after-sales diagnostic instrument; the after-sales diagnostic instrument generates the diagnostic instrument password according to the encrypted parameters, which can effectively prevent the vehicle password from being cracked, ensure that the vehicle system will not be illegally entered, improve the security and reliability of the vehicle system, and improve the speed and efficiency of random generation and verification of the vehicle password.

[0173] Further, Figure 7 FIG. 5 is a flow chart of a fifth embodiment of a random vehicle password generation and verification method according to the present invention. Figure 7 As shown, based on the first embodiment, a fifth embodiment of the vehicle computer password random generation verification method of the present invention is proposed. In this embodiment, the step S30 specifically includes the following steps:

[0174] Step S31: encrypting the diagnostic instrument password by using a diagnostic instrument private key through the after-sales diagnostic instrument to obtain the encrypted diagnostic instrument password, and sending the encrypted diagnostic instrument password to the current vehicle.

[0175] It should be noted that the after-sales diagnostic instrument can encrypt the diagnostic instrument password by using the diagnostic instrument private key to obtain the encrypted diagnostic instrument password, and send the encrypted diagnostic instrument password to the current vehicle.

[0176] Step S32: decrypt the encrypted diagnostic instrument password using the public key through the vehicle computer system of the current vehicle to obtain a decryption result.

[0177] It is understandable that the encrypted diagnostic instrument password can be decrypted using the public key through the vehicle system of the current vehicle to obtain a decryption result.

[0178] Step S33: Compare the decryption result with the vehicle computer password through a password comparison module to obtain a comparison result.

[0179] It should be understood that the decryption result can be compared with the vehicle computer password through the password comparison module to obtain a comparison result.

[0180] Step S34: when the comparison result shows that the decryption result is the same as the vehicle computer password, start the vehicle computer engineering mode.

[0181] It can be understood that when the comparison result is that the decryption result is the same as the vehicle computer password, the vehicle computer engineering mode is turned on.

[0182] Step S35: when the comparison result shows that the decryption result is different from the vehicle computer password, and the number of password comparison errors within the preset anti-explosion time reaches a preset number threshold, the vehicle computer engineering mode is not turned on within the preset stop password comparison time.

[0183] It should be understood that when the comparison result is that the decryption result is different from the vehicle computer password, and the number of password comparison errors reaches a preset threshold within the preset anti-explosion time, the vehicle computer engineering mode will not be turned on within the preset stop password comparison time.

[0184] In the specific implementation, the password comparison process is:

[0185] a. The vehicle system decrypts the received Key3 using the public key to obtain Key4;

[0186] b. The password comparison module compares the Key4 value with the password Key generated by the password generation system of the vehicle system.

[0187] c. If Key4 = Key, the engineering mode password is entered correctly, the engineering mode is turned on, and administrator privileges such as log extraction and software upgrade are available.

[0188] After the password comparison module receives the new Key value, it will automatically replace the previous Key value. The password comparison module stores the latest Key value sent by the password generation module, and only stores one Key value. The stored Key value will expire within 5 minutes. If the correct Key4 value is received 5 minutes after the Key is generated, the engineering mode will still not be opened.

[0189] In order to strengthen the control of illegal multiple password input and avoid password cracking, an anti-cracking mechanism is set up; if Key4≠Key is entered five times in a row within 5 minutes, the vehicle password comparison module will stop password comparison for 10 minutes. Within these 10 minutes, no matter whether the password is entered correctly or incorrectly, the vehicle engineering mode will not be opened.

[0190] There are many situations where password comparison errors occur:

[0191] a. The diagnostic instrument triggers password generation once, and the Key4 value and Key value entered multiple times are different (the Key value is consistent).

[0192] b. The diagnostic instrument triggers password generation multiple times, and the Key4 value entered each time is different from the current Key value (Key values ​​are inconsistent).

[0193] A combination of cases ca and b.

[0194] Through the above scheme, the present embodiment encrypts the diagnostic instrument password by the after-sales diagnostic instrument with the diagnostic instrument private key to obtain the encrypted diagnostic instrument password, and sends the encrypted diagnostic instrument password to the current vehicle; the vehicle system of the current vehicle decrypts the encrypted diagnostic instrument password with the public key to obtain a decryption result; the decryption result is compared with the vehicle password by the password comparison module to obtain a comparison result; when the comparison result is that the decryption result is the same as the vehicle password, the vehicle engineering mode is turned on; when the comparison result is that the decryption result is different from the vehicle password, and the number of password comparison errors within the preset anti-explosion time reaches the preset number threshold, the vehicle engineering mode is not turned on within the preset stop password comparison time, which can realize the dynamic password generation of the automobile vehicle, and the after-sales service can easily obtain the password, which can effectively prevent the vehicle password from being cracked, ensure that the vehicle system will not be illegally entered, improve the security and reliability of the vehicle system, and improve the speed and efficiency of random generation and verification of the vehicle password.

[0195] Correspondingly, the present invention further provides a vehicle computer password random generation and verification device.

[0196] Reference Figure 8 , Figure 8 This is a functional module diagram of the first embodiment of the vehicle computer password random generation and verification device of the present invention.

[0197] In the first embodiment of the vehicle computer password random generation verification device of the present invention, the vehicle computer password random generation verification device comprises:

[0198] The access authentication module 10 is used to perform diagnostic access authentication on the current vehicle through the after-sales diagnostic instrument when entering the vehicle model interface of the after-sales diagnostic instrument.

[0199] The password acquisition module 20 is used to obtain the diagnostic instrument password and the vehicle computer password after the access authentication is passed.

[0200] The verification and comparison module 30 is used to use the vehicle system to decrypt the diagnostic instrument password through the public key, obtain the decryption result, compare the decryption result with the vehicle password, and determine whether to start the vehicle engineering mode according to the comparison result.

[0201] The access authentication module 10 is also used to connect the after-sales diagnostic instrument to the OBD port of the on-board automatic diagnostic system of the current vehicle; when it is detected that the after-sales diagnostic instrument is operated to enter the vehicle model interface, the certificate and the diagnostic instrument private key built into the after-sales diagnostic instrument are obtained, and the root certificate built into the current vehicle and the public key corresponding to the diagnostic instrument private key are obtained; the current vehicle is diagnosed through the certificate, the diagnostic instrument private key, the root certificate and the public key.

[0202] The access authentication module 10 is also used to send the certificate to the current vehicle through the after-sales diagnostic instrument, and the current vehicle verifies the legitimacy of the identity of the certificate based on the root certificate; after the legitimacy verification is passed, the current vehicle sends a 32-byte random number to the after-sales diagnostic instrument; the random number is encrypting the after-sales diagnostic instrument according to the diagnostic instrument private key to obtain encrypted data; the encrypted data is sent to the current vehicle through the after-sales diagnostic instrument, and the current vehicle decrypts the encrypted data using the public key; when the encrypted data is the same as the random number, it is determined that the access authentication is passed, and a session key is generated at the same time.

[0203] The password acquisition module 20 is also used to, after the access authentication is passed, respond to the vehicle computer password request of the after-sales diagnostic instrument, and send the password request instruction of the vehicle computer password request to the current vehicle; after the vehicle computer password generation system of the current vehicle receives the password request instruction, execute password generation to obtain the vehicle computer password; encrypt the three parameters of the true random number, VIN and PDSN generated by the vehicle computer system of the current vehicle using the public key, and send the encrypted parameters to the after-sales diagnostic instrument; generate the diagnostic instrument password according to the encrypted parameters by the after-sales diagnostic instrument.

[0204] The password acquisition module 20 is also used to generate a true random number by a random number generator after the vehicle password generation system of the current vehicle receives the password request instruction; obtain the vehicle identification code VIN of the current vehicle, and obtain a first hash value by using a hash algorithm to perform the VIN through the vehicle password generation system; obtain the packet data service node PDSN of the current vehicle, and obtain a second hash value by using a hash algorithm to perform the PDSN through the vehicle password generation system; use a preset encryption algorithm to encrypt the true random number, the first hash value and the second hash value to dynamically generate a vehicle password.

[0205] The password acquisition module 20 is also used to decrypt the encrypted parameters through the after-sales diagnostic instrument using the diagnostic instrument private key to obtain decrypted parameters; obtain a third hash value by passing the decrypted VIN code in the decrypted parameters through the hash algorithm; obtain a fourth hash value by passing the decrypted PDSN code in the decrypted parameters through the hash algorithm; and generate a diagnostic instrument password by encrypting the decrypted true random number in the decryption parameters, the third hash value and the fourth hash value using the preset encryption algorithm.

[0206] The verification and comparison module 30 is further used to encrypt the diagnostic instrument password by using the diagnostic instrument private key through the after-sales diagnostic instrument to obtain the encrypted diagnostic instrument password, and send the encrypted diagnostic instrument password to the current vehicle; decrypt the encrypted diagnostic instrument password by using the public key through the vehicle system of the current vehicle to obtain a decryption result; compare the decryption result with the vehicle password through the password comparison module to obtain a comparison result; when the comparison result is that the decryption result is the same as the vehicle password, start the vehicle engineering mode; when the comparison result is that the decryption result is different from the vehicle password, and the number of password comparison errors within the preset anti-explosion time reaches a preset number threshold, the vehicle engineering mode is not started within the preset stop password comparison time.

[0207] Among them, the steps implemented by each functional module of the vehicle computer password random generation and verification device can refer to the various embodiments of the vehicle computer password random generation and verification method of the present invention, and will not be repeated here.

[0208] In addition, an embodiment of the present invention further provides a storage medium, on which a vehicle computer password random generation verification program is stored. When the vehicle computer password random generation verification program is executed by a processor, the following operations are implemented:

[0209] When entering the vehicle model interface of the after-sales diagnostic instrument, the diagnostic access authentication of the current vehicle is performed through the after-sales diagnostic instrument;

[0210] After the access authentication is passed, obtain the diagnostic instrument password and vehicle computer password;

[0211] The diagnostic instrument password is decrypted by the vehicle system through the public key to obtain a decryption result, the decryption result is compared with the vehicle password, and whether to start the vehicle engineering mode is determined according to the comparison result.

[0212] Furthermore, when the vehicle computer password random generation verification program is executed by the processor, the following operations are also implemented:

[0213] Connect the after-sales diagnostic instrument to the OBD port of the current vehicle's on-board automatic diagnostic system;

[0214] When detecting that the after-sales diagnostic instrument is operated to enter the vehicle model interface, obtaining the certificate and the private key of the after-sales diagnostic instrument built in, and obtaining the root certificate built in the current vehicle and the public key corresponding to the private key of the diagnostic instrument;

[0215] The diagnostic access authentication of the current vehicle is performed through the certificate, the diagnostic instrument private key, the root certificate and the public key.

[0216] Furthermore, when the vehicle computer password random generation verification program is executed by the processor, the following operations are also implemented:

[0217] Sending the certificate to the current vehicle through the after-sales diagnostic instrument, and the current vehicle performing a legitimacy check on the identity of the certificate according to the root certificate;

[0218] After the legality check is passed, the current vehicle sends a 32-byte random number to the after-sales diagnostic instrument;

[0219] Encrypting the random number using the after-sales diagnostic instrument according to the diagnostic instrument private key to obtain encrypted data;

[0220] The encrypted data is sent to the current vehicle through the after-sales diagnostic instrument, and the current vehicle decrypts the encrypted data using the public key;

[0221] When the encrypted data is identical to the random number, it is determined that the access authentication is successful, and a session key is generated at the same time.

[0222] Furthermore, when the vehicle computer password random generation verification program is executed by the processor, the following operations are also implemented:

[0223] After the access authentication is passed, in response to the vehicle computer password request of the after-sales diagnostic instrument, a password request instruction of the vehicle computer password request is sent to the current vehicle;

[0224] After the vehicle computer password generation system of the current vehicle receives the password request instruction, the password generation system executes the password generation to obtain the vehicle computer password;

[0225] The vehicle system of the current vehicle encrypts the three parameters of the true random number, VIN and PDSN using a public key, and sends the encrypted parameters to the after-sales diagnostic instrument;

[0226] The after-sales diagnostic instrument generates a diagnostic instrument password according to the encryption parameters.

[0227] Furthermore, when the vehicle computer password random generation verification program is executed by the processor, the following operations are also implemented:

[0228] After the vehicle computer password generation system of the current vehicle receives the password request instruction, a random number generator generates a true random number;

[0229] Obtaining a vehicle identification code VIN of the current vehicle, and using the vehicle computer password generation system to perform a hash algorithm on the VIN to obtain a first hash value;

[0230] Obtaining the packet data service node PDSN of the current vehicle, and obtaining a second hash value by performing a hash algorithm on the PDSN through the vehicle password generation system;

[0231] The true random number, the first hash value and the second hash value are encrypted using a preset encryption algorithm to dynamically generate a vehicle computer password.

[0232] Furthermore, when the vehicle computer password random generation verification program is executed by the processor, the following operations are also implemented:

[0233] Decrypting the encrypted parameters by the after-sales diagnostic instrument using a private key of the diagnostic instrument to obtain decrypted parameters;

[0234] The decrypted VIN code in the decryption parameter is subjected to the hash algorithm to obtain a third hash value;

[0235] The decrypted PDSN code in the decryption parameter is subjected to the hash algorithm to obtain a fourth hash value;

[0236] The decrypted true random number in the decryption parameter, the third Hash value and the fourth Hash value are encrypted using the preset encryption algorithm to generate a diagnostic instrument password.

[0237] Furthermore, when the vehicle computer password random generation verification program is executed by the processor, the following operations are also implemented:

[0238] Encrypting the diagnostic instrument password by using the after-sales diagnostic instrument private key to obtain the encrypted diagnostic instrument password, and sending the encrypted diagnostic instrument password to the current vehicle;

[0239] Decrypting the encrypted diagnostic instrument password by using a public key through the vehicle computer system of the current vehicle to obtain a decryption result;

[0240] The decryption result is compared with the vehicle computer password by a password comparison module to obtain a comparison result;

[0241] When the comparison result shows that the decryption result is the same as the vehicle computer password, starting the vehicle computer engineering mode;

[0242] When the comparison result is that the decryption result is different from the vehicle computer password, and the number of password comparison errors within the preset anti-explosion time reaches a preset number threshold, the vehicle computer engineering mode is not turned on within the preset stop password comparison time.

[0243] Those skilled in the art will appreciate that all or part of the steps in the above-mentioned implementation method can be accomplished by instructing related hardware through a program, and the program is stored in a storage medium, including a number of instructions for enabling a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each implementation method of the present application; and the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0244] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0245] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0246] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for randomly generating and verifying a vehicle computer password, characterized in that: The vehicle computer password random generation verification method comprises: When entering the vehicle model interface of the after-sales diagnostic instrument, the diagnostic access authentication of the current vehicle is performed through the after-sales diagnostic instrument; After the access authentication is passed, obtain the diagnostic instrument password and vehicle computer password; The diagnostic instrument password is decrypted by the vehicle system through the public key to obtain a decryption result, the decryption result is compared with the vehicle password, and whether to start the vehicle engineering mode is determined according to the comparison result.

2. The vehicle computer password random generation verification method as claimed in claim 1, characterized in that: When entering the vehicle model interface of the after-sales diagnostic instrument, the after-sales diagnostic instrument is used to perform diagnostic access authentication on the current vehicle, including: Connect the after-sales diagnostic instrument to the OBD port of the current vehicle's on-board automatic diagnostic system; When detecting that the after-sales diagnostic instrument is operated to enter the vehicle model interface, obtaining the certificate and the private key of the after-sales diagnostic instrument built in, and obtaining the root certificate built in the current vehicle and the public key corresponding to the private key of the diagnostic instrument; The diagnostic access authentication of the current vehicle is performed through the certificate, the diagnostic instrument private key, the root certificate and the public key.

3. The vehicle computer password random generation verification method as claimed in claim 2, characterized in that: The diagnostic access authentication of the current vehicle is performed by using the certificate, the diagnostic instrument private key, the root certificate and the public key, including: Sending the certificate to the current vehicle through the after-sales diagnostic instrument, and the current vehicle performing a legitimacy check on the identity of the certificate according to the root certificate; After the legality check is passed, the current vehicle sends a 32-byte random number to the after-sales diagnostic instrument; Encrypting the random number using the after-sales diagnostic instrument according to the diagnostic instrument private key to obtain encrypted data; The encrypted data is sent to the current vehicle through the after-sales diagnostic instrument, and the current vehicle decrypts the encrypted data using the public key; When the encrypted data is identical to the random number, it is determined that the access authentication is successful, and a session key is generated at the same time.

4. The vehicle computer password random generation verification method as claimed in claim 1, characterized in that: After the access authentication is passed, the diagnostic instrument password and the vehicle computer password are obtained, including: After the access authentication is passed, in response to the vehicle computer password request of the after-sales diagnostic instrument, a password request instruction of the vehicle computer password request is sent to the current vehicle; After the vehicle computer password generation system of the current vehicle receives the password request instruction, the password generation system executes the password generation to obtain the vehicle computer password; The vehicle system of the current vehicle encrypts the three parameters of the true random number, VIN and PDSN using a public key, and sends the encrypted parameters to the after-sales diagnostic instrument; The after-sales diagnostic instrument generates a diagnostic instrument password according to the encryption parameters.

5. The vehicle computer password random generation verification method as claimed in claim 4, characterized in that: After the vehicle computer password generation system of the current vehicle receives the password request instruction, the password generation is performed to obtain the vehicle computer password, including: After the vehicle computer password generation system of the current vehicle receives the password request instruction, a random number generator generates a true random number; Obtaining a vehicle identification code VIN of the current vehicle, and using the vehicle computer password generation system to perform a hash algorithm on the VIN to obtain a first hash value; Obtaining the packet data service node PDSN of the current vehicle, and obtaining a second hash value by performing a hash algorithm on the PDSN through the vehicle password generation system; The true random number, the first hash value and the second hash value are encrypted using a preset encryption algorithm to dynamically generate a vehicle computer password.

6. The vehicle computer password random generation verification method as claimed in claim 5, characterized in that: The generating of the diagnostic instrument password by the after-sales diagnostic instrument according to the encryption parameter comprises: Decrypting the encrypted parameters by the after-sales diagnostic instrument using a private key of the diagnostic instrument to obtain decrypted parameters; The decrypted VIN code in the decryption parameter is subjected to the hash algorithm to obtain a third hash value; The decrypted PDSN code in the decryption parameter is subjected to the hash algorithm to obtain a fourth hash value; The decrypted true random number in the decryption parameter, the third Hash value and the fourth Hash value are encrypted using the preset encryption algorithm to generate a diagnostic instrument password.

7. The vehicle computer password random generation verification method as claimed in claim 1, characterized in that: The method of using the vehicle system to decrypt the diagnostic instrument password through the public key to obtain a decryption result, comparing the decryption result with the vehicle password, and determining whether to start the vehicle engineering mode according to the comparison result includes: Encrypting the diagnostic instrument password by using the after-sales diagnostic instrument private key to obtain the encrypted diagnostic instrument password, and sending the encrypted diagnostic instrument password to the current vehicle; Decrypting the encrypted diagnostic instrument password by using a public key through the vehicle computer system of the current vehicle to obtain a decryption result; The decryption result is compared with the vehicle computer password by a password comparison module to obtain a comparison result; When the comparison result shows that the decryption result is the same as the vehicle computer password, starting the vehicle computer engineering mode; When the comparison result is that the decryption result is different from the vehicle computer password, and the number of password comparison errors within the preset anti-explosion time reaches a preset number threshold, the vehicle computer engineering mode is not turned on within the preset stop password comparison time.

8. A vehicle computer password random generation verification device, characterized in that: The vehicle computer password random generation verification device comprises: An access authentication module, used to perform diagnostic access authentication on the current vehicle through the after-sales diagnostic instrument when entering the vehicle model interface of the after-sales diagnostic instrument; The password acquisition module is used to obtain the diagnostic instrument password and vehicle computer password after the access authentication is passed; The verification and comparison module is used to use the vehicle system to decrypt the diagnostic instrument password through the public key, obtain the decryption result, compare the decryption result with the vehicle password, and determine whether to start the vehicle engineering mode according to the comparison result.

9. A vehicle computer password random generation verification device, characterized in that: The vehicle-machine password random generation and verification device includes: a memory, a processor, and a vehicle-machine password random generation and verification program stored in the memory and executable on the processor, wherein the vehicle-machine password random generation and verification program is configured to implement the steps of the vehicle-machine password random generation and verification method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a vehicle computer password random generation verification program, and when the vehicle computer password random generation verification program is executed by the processor, the steps of the vehicle computer password random generation verification method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Identity authentication method, positioning device and to-be-unlocked end

    CN110489958A

  • Vehicle diagnosis method, server and computer readable storage medium

    CN111181928A

  • Dynamic password implementation method and device for App login, equipment and medium

    CN114095154A

  • Data flashing method and device of vehicle-mounted electronic control unit and storage medium

    CN117435226A

  • Method for carrying out safety certification on vehicle in after-sales diagnostic apparatus

    CN117650896A

Cited By

  • Security password generation method and device for medical equipment

    CN119885152A