Encryption login method and device of in-vehicle infotainment system, electronic equipment and storage medium
By generating and verifying the serial configuration file and standard configuration file of the vehicle infotainment system chip, and combining environment variables and dynamic keys, the problem of poor login security of the vehicle infotainment system is solved, strong binding of configuration files and environment isolation are achieved, and system security is improved.
Patent Information
- Application Number
- CN202511550185.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-28
- Publication Date
- 2025-12-12
AI Technical Summary
Existing vehicle infotainment system login technologies suffer from problems such as insufficient dynamic binding mechanisms, limitations in secure startup and anti-tampering technologies, difficulty in balancing development and debugging with production security, and a lack of hardware binding mechanisms for keys, resulting in poor security.
A serial configuration file is generated by obtaining the chip serial number of the vehicle infotainment system's configuration chip. A standard configuration file is generated based on the serial configuration file and the checksum. At startup, the environment variables are set according to the checksum result, thus achieving a strong binding between the configuration file and the vehicle infotainment system's configuration chip, isolating the development/production environments, and generating a dynamic key for login.
Effectively prevents unauthorized devices from starting up, isolates development/production environments, improves the security of the vehicle system, and prevents key leakage and unauthorized login.
Smart Images

Figure CN121125331A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to an encrypted login method, device, electronic device, and storage medium for a vehicle infotainment system. Background Technology
[0002] Currently, secure login technology for in-vehicle infotainment systems mainly relies on traditional encryption methods and operating system security mechanisms, but this has significant limitations:
[0003] 1. Lack of dynamic binding mechanism: Most in-vehicle systems use preset passwords or fixed keys for user login authentication, lacking a dynamic binding mechanism. For example, although GAC's in-vehicle Ethernet dynamic login solution introduces public key authentication, the private key is still centrally managed by the server, failing to achieve unique binding to the terminal hardware. Attackers can obtain the key through reverse engineering or man-in-the-middle attacks, posing a risk of large-scale intrusion due to unified key leakage.
[0004] 2. Secure boot and anti-tampering technologies have limitations. While automotive operating systems such as QNX (a real-time operating system) provide Secure Boot and QTD (QNX Trusted Disk) integrity protection, they do not associate them with the chip's physical identifier. QTD technology verifies file system block hashes based on Merkle trees and relies on RootHash signature protection, but it can only detect tampering and cannot achieve dynamic authentication during the boot phase. Such mechanisms cannot prevent legitimate images from running on unauthorized devices and are not integrated with the user login process.
[0005] 3. Balancing development / debugging with production security is difficult. During the development phase, traditional solutions rely on fixed backdoor passwords or open permissions. For example, the Mazda CMU in-vehicle infotainment system suffered from an SQL injection vulnerability, allowing attackers to execute arbitrary code with root privileges. Existing technologies lack secure, isolated debugging channels, making them vulnerable to exploitation by hackers.
[0006] 4. The keys lack a hardware binding mechanism. Even when using the Vehicle Identification Number (VIN) as an authentication factor, most solutions simply store it statically in the OEM partition without dynamically associating it with the chip's unique identifier. For example, PATEO's vehicle networking patent relies on a Direct Memory Access (DMA) controller to manage serial port data, but it does not involve key generation logic. Hackers can bypass verification by cloning the entire device's flash memory data. Summary of the Invention
[0007] The purpose of this invention is to provide an encrypted login method, device, electronic device, and storage medium for a vehicle infotainment system, so as to at least solve the problem of poor security in existing vehicle infotainment system login technologies and help ensure the security of the vehicle infotainment system.
[0008] To address the aforementioned technical problems, in a first aspect, the present invention provides an encrypted login method for a vehicle infotainment system, comprising at least:
[0009] Obtain the chip serial number of the vehicle infotainment system configuration chip, and generate a serial configuration file based at least on the chip serial number;
[0010] Obtain the verification value of the sequence configuration file, and generate a standard configuration file based at least on the sequence configuration file and the verification value;
[0011] In response to the vehicle's infotainment system starting up, the standard configuration file is verified to obtain the verification result;
[0012] Set environment variables based on the verification results, and complete the login to the vehicle system based at least on the environment variables.
[0013] Optionally, the verification result includes at least a verification failure result and a verification success result;
[0014] The environmental variables include at least environmental success variables and environmental failure variables.
[0015] Optionally, the step of setting environment variables based on the verification result and completing the login to the vehicle system based at least on the environment variables specifically includes:
[0016] Based on the successful verification result, the environment variable is set as the environment success variable;
[0017] At least after the environment variable is set to the environment success variable, the vehicle system enters the development environment and directly completes the login of the vehicle system.
[0018] Optionally, the step of setting environment variables based on the verification result and completing the login to the vehicle system based at least on the environment variables further includes:
[0019] Based on the verification failure result, the environment variable is set as the environment failure variable;
[0020] At least after the environment variable is set to the environment failure variable, the vehicle system enters the production environment and reads the vehicle VIN code;
[0021] A dynamic key is generated based on the vehicle's VIN code using a preset encryption method, and login to the vehicle system is completed at least based on the dynamic key.
[0022] Optionally, the step of generating the dynamic key based on the vehicle's VIN code using a preset encryption method, and then completing the login to the vehicle system based at least on the dynamic key, specifically includes:
[0023] Calculate the hash value corresponding to the vehicle's VIN code and convert the hash value into a hash string in a first preset base;
[0024] Obtain the hash character at a preset position within the hash string and convert the hash character into an index character in a second preset base;
[0025] Perform an encoding operation on the index character to obtain the encoding result;
[0026] Extract a pre-defined length of encoded string from the encoded result and use the encoded string as the dynamic key to complete the login to the vehicle system based at least on the dynamic key.
[0027] Secondly, the present invention also provides an encrypted login device for a vehicle infotainment system, comprising at least:
[0028] A configuration acquisition module is used to acquire the chip serial number of the vehicle infotainment system configuration chip, so as to generate a serial configuration file based at least on the chip serial number;
[0029] A standard configuration module is used to obtain the verification value of the sequence configuration file, so as to generate a standard configuration file based at least on the sequence configuration file and the verification value;
[0030] The startup verification module is used to verify the standard configuration file in response to the startup of the vehicle system in order to obtain the verification result;
[0031] The login verification module is used to set environment variables based on the verification result and to complete the login to the vehicle system based at least on the environment variables.
[0032] Optionally, the verification result includes at least a verification failure result and a verification success result;
[0033] The environmental variables include at least environmental success variables and environmental failure variables.
[0034] Optionally, the login verification module is specifically used for:
[0035] Based on the successful verification result, the environment variable is set as the environment success variable; and, at least after the environment variable is set as the environment success variable, the vehicle system enters the development environment and directly completes the login of the vehicle system.
[0036] Thirdly, the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that the processor, when executing the program, implements the steps of the encrypted login method of the vehicle system according to any one of the first aspects.
[0037] Fourthly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the encrypted login method of the vehicle system according to any one of the first aspects.
[0038] The technical solution provided by this invention first obtains the chip serial number of the vehicle infotainment system configuration chip to generate a serial configuration file based at least on the chip serial number; second, obtains the verification value of the serial configuration file to generate a standard configuration file based at least on the serial configuration file and the verification value; then, in response to the startup of the vehicle infotainment system, verifies the standard configuration file to obtain the verification result; finally, sets environment variables based on the verification result and completes the login to the vehicle infotainment system based at least on the environment variables.
[0039] Therefore, this invention, on the one hand, generates a serial configuration file based on the chip serial number and a standard configuration file based on the serial configuration file and the checksum, which enables a strong binding relationship between the configuration file and the vehicle infotainment system's configuration chip, effectively preventing unauthorized devices from starting. On the other hand, this invention, by setting environment variables through the checksum results, can effectively isolate the development / production environment of the vehicle infotainment system, further ensuring the security of the vehicle infotainment system. Attached Figure Description
[0040] Figure 1 This is a flowchart of an encrypted login method for a vehicle infotainment system provided in an embodiment of the present invention;
[0041] Figure 2 This is a flowchart of another encrypted login method for a vehicle infotainment system provided in an embodiment of the present invention;
[0042] Figure 3 This is a flowchart of another encrypted login method for a vehicle infotainment system provided in an embodiment of the present invention;
[0043] Figure 4 This is a schematic diagram of the structure of an encrypted login device for a vehicle infotainment system provided in an embodiment of the present invention;
[0044] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention;
[0045] Figure 6 This is a system architecture diagram of an encrypted login device for a vehicle infotainment system provided in an embodiment of the present invention;
[0046] Figure 7 This is a timing diagram of an encrypted login method for a vehicle infotainment system provided in an embodiment of the present invention. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0048] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms “a,” “said,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms, and “multiple” generally includes at least two unless the context clearly indicates otherwise.
[0049] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0050] It should be understood that although the terms first, second, third, etc., may be used in the embodiments of this application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, first may also be referred to as second without departing from the scope of the embodiments of this application, and similarly, second may also be referred to as first.
[0051] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”
[0052] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or device that includes said element.
[0053] It should be noted that any symbols and / or numbers present in the specification that are not marked in the accompanying drawings are not reference numerals.
[0054] Figure 1 This is a flowchart of an encrypted login method for a vehicle infotainment system provided by an embodiment of the present invention. This embodiment is applicable to encrypted login scenarios for various types of vehicle infotainment systems. The encrypted login method for this vehicle infotainment system can be, but is not limited to, executed by the encrypted login device of the vehicle infotainment system in this embodiment of the present invention. This execution entity can be implemented in software and / or hardware. Figure 1 As shown, the encrypted login method of this vehicle infotainment system includes at least the following steps:
[0055] S1. Obtain the chip serial number of the vehicle infotainment system configuration chip, and generate a serial configuration file based at least on the chip serial number.
[0056] The in-vehicle infotainment system (IVR) chip can be a Qualcomm chip, typically stored in registers. The chip serial number can be a unique identifier for the Qualcomm chip. In one specific implementation, the chip serial number can be read via a dedicated pipeline job. The serial configuration file can be a syscfg.bin file. It is understood that after the syscfg.bin configuration file is generated, it can be written to a separate syscfg partition (or to an encrypted storage area stored in the security chip (eSE / TPM)), allowing it to be securely read directly during subsequent verification of the standard configuration file.
[0057] S2. Obtain the checksum of the sequence configuration file, and generate a standard configuration file based at least on the sequence configuration file and the checksum.
[0058] The checksum can be obtained by reading the first 60 bytes of the syscfg.bin configuration file within the syscfg partition, hashing the first 60 bytes using the SHA-256 algorithm, and then obtaining the checksum. The standard configuration file generation method involves appending a checksum to the sequence configuration file.
[0059] S3. In response to the startup of the vehicle's infotainment system, verify the standard configuration file to obtain the verification result.
[0060] The verification sequence configuration file can be used to verify the verification values in the verification sequence configuration file. By comparing the locally reserved hash value with the verification value, the verification is considered successful if they match, and unsuccessful otherwise. In another specific implementation, the verification result may optionally include at least a verification failure result and a verification success result.
[0061] S4. Set environment variables based on the verification results, and complete the login to the vehicle system based at least on the environment variables.
[0062] The environmental variables are used to determine the operating environment of the vehicle infotainment system. The operating environment of the vehicle infotainment system may include a development environment and a production environment. In another specific implementation, optionally, the environmental variables include at least environment success variables and environment failure variables.
[0063] The technical solution provided in this embodiment first obtains the chip serial number of the vehicle infotainment system configuration chip to generate a serial configuration file based at least on the chip serial number; second, obtains the verification value of the serial configuration file to generate a standard configuration file based at least on the serial configuration file and the verification value; then, in response to the startup of the vehicle infotainment system, verifies the standard configuration file to obtain the verification result; finally, sets environment variables based on the verification result and completes the login to the vehicle infotainment system based at least on the environment variables.
[0064] Therefore, this embodiment, on the one hand, generates a serial configuration file based on the chip serial number, and on the other hand, generates a standard configuration file based on the serial configuration file and the checksum. This enables a strong binding relationship between the configuration file and the vehicle's configuration chip, effectively preventing unauthorized devices from starting. On the other hand, this embodiment sets environment variables through the checksum results, which can effectively isolate the development / production environment and further ensure the security of the vehicle's infotainment system.
[0065] Based on the above embodiments or implementation methods Figure 2 This is a flowchart of another encrypted login method for a vehicle infotainment system provided in an embodiment of the present invention. Figure 7 This is a timing diagram of an encrypted login method for a vehicle infotainment system provided in an embodiment of the present invention. This embodiment is based on the above embodiment with additions. Figure 2 and Figure 7 As shown, the encrypted login method of this vehicle infotainment system includes at least the following steps:
[0066] S1. Obtain the chip serial number of the vehicle infotainment system configuration chip, and generate a serial configuration file based at least on the chip serial number.
[0067] Understandably, when generating the serial configuration file, the first step is to copy / download gen_syscfg_img.py (a utility script) from the local machine or a specified address. Further, developers manually configure relevant parameters such as release_addr (version address), applicant_email (applicant email), adb_value (ADB function configuration), uart_value (serial port function configuration), and selinux_value (SELinux security configuration). Further still, developers set adb_value and uart_value based on the on / off states of ENABLE_ADB and ENABLE_UART. Finally, after setting adb_value and uart_value, gen_syscfg_img.py can be called to process the DEVICE_ID (chip serial number) to generate the filename syscfg.bin and its associated info filename, thereby generating the syscfg.bin configuration file.
[0068] S2. Obtain the checksum of the sequence configuration file, and generate a standard configuration file based at least on the sequence configuration file and the checksum.
[0069] As an alternative, this embodiment can also use a device unique certificate (PKI system) signature configuration file instead of a verification value to avoid serial number forgery.
[0070] S3. In response to the startup of the vehicle's infotainment system, verify the standard configuration file to obtain the verification result.
[0071] S41. Set the environment variable as an environment success variable based on the successful verification result.
[0072] Setting an environment variable as a success variable can be achieved by setting the corresponding environment variable value to 1. For example, when ENV_OK is set to 1, it is considered that the current environment variable is a success variable.
[0073] S42. At least after the environment variables are set to the environment success variables, the vehicle system enters the development environment and directly completes the login of the vehicle system.
[0074] Understandably, when the vehicle infotainment system is in a development environment, it can automatically log in without requiring a dynamic password.
[0075] Therefore, this embodiment, on the one hand, generates a serial configuration file based on the chip serial number, and on the other hand, generates a standard configuration file based on the serial configuration file and the checksum. This enables a strong binding relationship between the configuration file and the vehicle's configuration chip, effectively preventing unauthorized devices from starting. On the other hand, this embodiment sets environment variables through the checksum results, which can effectively isolate the development / production environment and further ensure the security of the vehicle's infotainment system.
[0076] See also Figure 7 Based on the above embodiments or implementation methods, Figure 3 This is a flowchart of another encrypted login method for a vehicle infotainment system provided by an embodiment of the present invention. This embodiment is based on the above embodiment and includes additional steps. Figure 3 As shown, the encrypted login method of this vehicle infotainment system includes at least the following steps:
[0077] S1. Obtain the chip serial number of the vehicle infotainment system configuration chip, and generate a serial configuration file based at least on the chip serial number.
[0078] S2. Obtain the checksum of the sequence configuration file, and generate a standard configuration file based at least on the sequence configuration file and the checksum.
[0079] S3. In response to the startup of the vehicle's infotainment system, verify the standard configuration file to obtain the verification result.
[0080] S43. Set the environment variable as the environment failure variable based on the verification failure result.
[0081] Setting an environment variable as an environment failure variable can be achieved by setting the corresponding environment variable value to 0. For example, when ENV_OK is 0, it is considered that the current environment variable is an environment failure variable.
[0082] S44. At least after the environment variable is set to the environment failure variable, the vehicle system enters the production environment and reads the vehicle VIN code.
[0083] Among them, the vehicle identification number (VIN) can be a vehicle identification code that can uniquely identify a vehicle.
[0084] S45. Generate a dynamic key based on the vehicle's VIN code using a preset encryption method, and complete the login to the vehicle system based on at least the dynamic key.
[0085] The dynamic key can be generated differently for different vehicle VIN codes, achieving one key per vehicle. As an alternative, this embodiment can also generate a dynamic key based on real-time vehicle data (such as GPS location and timestamps). In yet another specific implementation, step S45 may optionally include:
[0086] (45-1) Calculate the hash value corresponding to the vehicle's VIN code and convert the hash value into a hash string in the first preset base.
[0087] The hash value can be calculated using the SHA256 hash algorithm. The first preset base can be hexadecimal.
[0088] (45-2) Obtain the hash character at a preset position within the hash string and convert the hash character into an index character in the second preset base.
[0089] The preset position can be the 16th character (index 15). The second preset base can be decimal.
[0090] (45-3) Perform encoding operations on the index characters to obtain the encoding results.
[0091] The encoding operation can be Base64 encoding.
[0092] (45-4) Extract the encoded string of a preset length from the encoded result and use the encoded string as a dynamic key to complete the login of the vehicle system based on at least the dynamic key.
[0093] The encoded string can be obtained by extracting 16 characters (preset length) from the index position in the encoded result as the dynamic key.
[0094] In yet another specific implementation, the technical solution provided by this embodiment can be specifically as follows:
[0095] First, obtain the chip serial number via `getserial` or hardware methods. Next, use the Jennifer's job pipeline tool to read and input the serial number to obtain the `syscfg.bin` configuration file. Then, connect the hardware, enter the serial port, type `reset -f` to enter fastboot mode, and use `fastboot flash syscfg syscfg.bin` to flash the `syscfg` file to the partition. After the vehicle's infotainment system boots, connect to the serial port. If the `syscfg` file has been flashed, login is possible without a password. If the `syscfg` file has not been flashed, login is required. Further, the vehicle's VIN is extracted and the following calculation process is executed: B = VIN's SHA256 hash value (hexadecimal string); C = B converted to binary and then base64 encoded, removing newlines; char_index = the 16th character of B; if char_index is "af", it is converted to decimal (a=10, b=11, ..., f=15); password = starting from the +1 character of C, 16 characters are extracted; the dynamic password is output: cBgUpEHi3H2+ucW4. Finally, the vehicle system login is completed based on the dynamic password.
[0096] In summary, this embodiment generates a serial configuration file based on the chip serial number and a standard configuration file based on the serial configuration file and the checksum, which enables a strong binding relationship between the configuration file and the vehicle's infotainment system chip, effectively preventing unauthorized devices from starting. Furthermore, this embodiment sets environment variables through the checksum results, effectively isolating the development / production environments and further ensuring the security of the vehicle's infotainment system.
[0097] Figure 4 This is a schematic diagram of the structure of an encrypted login device for a vehicle infotainment system provided in an embodiment of the present invention. Figure 6 This is a system architecture diagram of an encrypted login device for a vehicle infotainment system provided in an embodiment of the present invention. This embodiment is applicable to encrypted login scenarios for various types of vehicle infotainment systems. The encrypted login device for this vehicle infotainment system can be implemented using software and / or hardware. Figure 4 and Figure 6 As shown, the encrypted login device of this vehicle system includes at least:
[0098] The configuration acquisition module 110 is used to acquire the chip serial number of the vehicle configuration chip, so as to generate a serial configuration file based at least on the chip serial number;
[0099] The standard configuration module 120 is used to obtain the check value of the sequence configuration file, so as to generate a standard configuration file based at least on the sequence configuration file and the check value;
[0100] The startup verification module 130 is used to verify the standard configuration file in response to the startup of the vehicle system in order to obtain the verification result;
[0101] The login verification module 140 is used to set environment variables based on the verification result and to complete the login to the vehicle system based at least on the environment variables.
[0102] Optionally, the verification result shall include at least a verification failure result and a verification success result;
[0103] Environment variables include at least environment success variables and environment failure variables.
[0104] Optionally, the login verification module 140 is specifically used for:
[0105] Based on the successful verification result, the environment variable is set as the environment success variable; and, at least after the environment variable is set as the environment success variable, the vehicle system enters the development environment and directly completes the login of the vehicle system.
[0106] Optionally, the login verification module 140 is also specifically used for:
[0107] Based on the verification failure result, the environment variable is set as an environment failure variable; and, at least after the environment variable is set as an environment failure variable, the vehicle system enters the production environment and reads the vehicle VIN code; and, a dynamic key is generated based on the vehicle VIN code using a preset encryption method, so as to complete the login of the vehicle system based at least on the dynamic key.
[0108] Optionally, the login verification module 140 is also specifically used for:
[0109] The system calculates the hash value corresponding to the vehicle's VIN code and converts the hash value into a hash string in a first preset base; it also obtains the hash character at a preset position within the hash string and converts the hash character into an index character in a second preset base; it performs an encoding operation on the index character to obtain the encoding result; and it extracts an encoded string of a preset length from the encoding result and uses the encoded string as a dynamic key to complete the login to the vehicle system based at least on the dynamic key.
[0110] The technical solution provided in this embodiment first obtains the chip serial number of the vehicle infotainment system's configuration chip through a configuration acquisition module, and generates a serial configuration file based on the chip serial number. Further, it obtains the verification value of the serial configuration file through a standard configuration module, and generates a standard configuration file based on the serial configuration file and the verification value. Further, in response to the vehicle infotainment system's startup, it verifies the standard configuration file through a startup verification module to obtain a verification result. Finally, it sets environment variables based on the verification result through a login verification module, and completes login to the vehicle infotainment system based at least on the environment variables.
[0111] Therefore, this embodiment, on the one hand, generates a serial configuration file based on the chip serial number, and on the other hand, generates a standard configuration file based on the serial configuration file and the checksum. This enables a strong binding relationship between the configuration file and the vehicle's configuration chip, effectively preventing unauthorized devices from starting. On the other hand, this embodiment sets environment variables through the checksum results, which can effectively isolate the development / production environment of the vehicle's infotainment system, further ensuring the security of the vehicle's infotainment system.
[0112] This embodiment provides an electronic device. Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. See also: Figure 5 The electronic device 1000 includes a processor 1001 and a memory 1002. The memory 1002 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 1001, the steps in any of the above-described encrypted login methods for the vehicle system are performed. Through the above technical solution, the processor 1001 and the memory 1002 are interconnected and communicate with each other via a communication bus and / or other forms of connection mechanisms (not shown). The memory 1002 stores a processor-executable computer program. When the electronic device 1000 is running, the processor 1001 executes the computer program to perform the encrypted login method for the vehicle system in any of the optional implementations of the above embodiments, to at least achieve the following functions: obtaining the chip serial number of the vehicle configuration chip, and generating a serial configuration file based at least on the chip serial number; obtaining the verification value of the serial configuration file, and generating a standard configuration file based at least on the serial configuration file and the verification value; verifying the standard configuration file in response to the startup of the vehicle system to obtain a verification result; setting environment variables based on the verification result, and completing the login to the vehicle system based at least on the environment variables.
[0113] This embodiment provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the program implements the encrypted login method for a vehicle infotainment system as provided in all embodiments of this application: obtaining the chip serial number of the vehicle infotainment system configuration chip, and generating a serial configuration file based at least on the chip serial number; obtaining the verification value of the serial configuration file, and generating a standard configuration file based at least on the serial configuration file and the verification value; in response to the startup of the vehicle infotainment system, verifying the standard configuration file to obtain a verification result; setting environment variables based on the verification result, and completing the login to the vehicle infotainment system based at least on the environment variables.
[0114] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0115] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0116] The program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0117] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages—such as Java, Smalltalk, and C++—as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An encrypted login method for a vehicle infotainment system, characterized in that, At least including: Obtain the chip serial number of the vehicle infotainment system configuration chip, and generate a serial configuration file based at least on the chip serial number; Obtain the verification value of the sequence configuration file, and generate a standard configuration file based at least on the sequence configuration file and the verification value; In response to the vehicle's infotainment system starting up, the standard configuration file is verified to obtain the verification result; Set environment variables based on the verification results, and complete the login to the vehicle system based at least on the environment variables.
2. The encrypted login method for the vehicle infotainment system according to claim 1, characterized in that, The verification results include at least verification failure results and verification success results; The environmental variables include at least environmental success variables and environmental failure variables.
3. The encrypted login method for the vehicle infotainment system according to claim 2, characterized in that, The step of setting environment variables based on the verification result and completing the login to the vehicle system based at least on the environment variables specifically includes: Based on the successful verification result, the environment variable is set as the environment success variable; At least after the environment variable is set to the environment success variable, the vehicle system enters the development environment and directly completes the login of the vehicle system.
4. The encrypted login method for the vehicle infotainment system according to claim 2, characterized in that, The step of setting environment variables based on the verification result and completing the login to the vehicle system based at least on the environment variables further includes: Based on the verification failure result, the environment variable is set as the environment failure variable; At least after the environment variable is set to the environment failure variable, the vehicle system enters the production environment and reads the vehicle VIN code; A dynamic key is generated based on the vehicle's VIN code using a preset encryption method, and login to the vehicle system is completed at least based on the dynamic key.
5. The encrypted login method for the vehicle infotainment system according to claim 4, characterized in that, The step of generating the dynamic key based on the vehicle's VIN code using a preset encryption method, and then completing the login to the vehicle system based at least on the dynamic key, specifically includes: Calculate the hash value corresponding to the vehicle's VIN code and convert the hash value into a hash string in a first preset base; Obtain the hash character at a preset position within the hash string and convert the hash character into an index character in a second preset base; Perform an encoding operation on the index character to obtain the encoding result; Extract a pre-defined length of encoded string from the encoded result and use the encoded string as the dynamic key to complete the login to the vehicle system based at least on the dynamic key.
6. An encrypted login device for a vehicle infotainment system, characterized in that, At least including: A configuration acquisition module is used to acquire the chip serial number of the vehicle infotainment system configuration chip, so as to generate a serial configuration file based at least on the chip serial number; A standard configuration module is used to obtain the verification value of the sequence configuration file, so as to generate a standard configuration file based at least on the sequence configuration file and the verification value; The startup verification module is used to verify the standard configuration file in response to the startup of the vehicle system in order to obtain the verification result; The login verification module is used to set environment variables based on the verification result and to complete the login to the vehicle system based at least on the environment variables.
7. The encrypted login device for the vehicle infotainment system according to claim 6, characterized in that, The verification results include at least verification failure results and verification success results; The environmental variables include at least environmental success variables and environmental failure variables.
8. The encrypted login device for the vehicle infotainment system according to claim 7, characterized in that, The login verification module is specifically used for: Based on the successful verification result, the environment variable is set as the environment success variable; and, at least after the environment variable is set as the environment success variable, the vehicle system enters the development environment and directly completes the login of the vehicle system.
9. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps in the encrypted login method of the vehicle system according to any one of claims 1 to 5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the encrypted login method of the vehicle system according to any one of claims 1 to 5.