MCU anti-theft authentication method and system and storage medium

By using identification code, combination algorithm and hash algorithm for dual authentication in the MCU controller of new energy vehicles, the risk of illegal modification or stealing of MCUs is solved, and the security and reliability of the system are improved.

CN120048027APending Publication Date: 2025-05-27合肥钧联汽车电子有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411900750.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

New energy vehicle MCU controllers face the risk of illegal modification or theft, and existing anti-theft methods cannot effectively prevent illegal replacement or modification of MCUs.

Method used

By generating the first identification code and the second identification code and sending it to the MCU, the combined value and the hash value are calculated using the combination algorithm and the hash algorithm, and two authentications are performed to ensure the legitimacy of the MCU.

Benefits of technology

It improves the security and reliability of MCU anti-theft certification, prevents illegal modification and theft, and ensures the stability of the car controller and the safety of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120048027A_ABST
    Figure CN120048027A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an MCU anti-theft authentication method and system and a storage medium, and belongs to the technical field of automobile controller safety authentication. The method comprises the following steps: setting a first identification code and a second identification code according to a unique identification code of a vehicle, and sending the first identification code and the second identification code to an MCU; combining the first identification code and the second identification code according to a combination algorithm to obtain a first combination value; calculating a hash value of the first combination value according to a hash algorithm as a third identification code and sending the third identification code to the MCU; performing first authentication according to the first identification code, the second identification code and the third identification code, and judging whether the first authentication is successful or not; under the condition that the first authentication is judged to be successful, performing second authentication and judging whether the second authentication is successful or not; and under the condition of judging that the second authentication is successful, judging that the anti-theft authentication is successful. The MCU anti-theft authentication method is high in safety and reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile controller security authentication, and in particular to an MCU anti-theft authentication method, system and storage medium. Background Art

[0002] With the popularization of new energy vehicles and the continuous development of automobile industry science and technology, people's requirements for automobile reliability are constantly increasing. The application of information security technology in automobiles has become particularly important, especially the use of MCU motors and electronic controls in key parts of automobiles. If the motors and electronic controls are stolen, or if the parts are replaced and assembled without permission, it will affect the control effect of the entire vehicle and the user's driving experience, and even affect the user's property and life safety.

[0003] In order to prevent third-party personnel from illegally testing and modifying the MCU controller of new energy vehicles, and to prevent industry personnel from making mistakes when replacing the MCU controller, the main applications of traditional car anti-theft methods are engine anti-theft and key matching anti-theft methods. At present, the mainstream anti-theft methods mainly focus on key matching anti-theft, which cannot prevent the modification or illegal replacement of the MCU of new energy vehicle parts, and the new energy vehicle controller faces the risk of illegal modification or theft. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide an MCU anti-theft authentication method, system and storage medium, which have high security and reliability.

[0005] In order to achieve the above object, an embodiment of the present invention provides an MCU anti-theft authentication method, comprising:

[0006] Setting a first identification code and a second identification code according to a unique identification code of the vehicle and sending them to the MCU;

[0007] Combining the first identification code and the second identification code according to a combination algorithm to obtain a first combination value;

[0008] Calculate the hash value of the first combination value according to the hash algorithm as the third identification code and send it to the MCU;

[0009] Performing a first authentication according to the first identification code, the second identification code and the third identification code;

[0010] Determine whether the first authentication is successful;

[0011] If the first authentication is judged to be successful, a second authentication is performed to judge whether the second authentication is successful;

[0012] When it is determined that the second authentication is successful, the anti-theft authentication is determined to be successful.

[0013] Optionally, performing a first authentication according to the first identification code, the second identification code, and the third identification code and determining whether the first authentication is successful includes:

[0014] Send anti-theft authentication request command to MCU and start timing;

[0015] After receiving the anti-theft authentication request instruction, the MCU processes and returns a first authentication code;

[0016] Determine whether the first authentication code returned by the MCU is received within a preset first time threshold;

[0017] If it is determined that the first authentication code returned by the MCU is not received within the first time threshold, determining whether the number of anti-theft authentication times is less than a preset first number threshold;

[0018] If it is determined that the number of anti-theft authentication times is less than the first number threshold, returning to the step of sending an anti-theft authentication request instruction to the MCU and timing;

[0019] When it is determined that the number of anti-theft authentications is greater than or equal to the first number threshold, it is determined that the anti-theft authentication has failed and an alarm signal is issued.

[0020] Optionally, performing a first authentication according to the first identification code, the second identification code, and the third identification code and determining whether the first authentication is successful further includes:

[0021] In the case where it is determined that the first authentication code returned by the MCU is received within the first time threshold, reversing the first authentication code according to the combined algorithm and obtaining a reverse random number and a reverse hash value;

[0022] Combining the reverse random number, the first identification code, the second identification code and the third identification code according to the combination algorithm to obtain a second combination value;

[0023] Obtaining a hash value of the second combination value by calculating according to a hash algorithm;

[0024] Determining whether the hash value of the second combined value is equal to the inverse hash value;

[0025] In the case where it is determined that the hash value of the second combined value is equal to the inverse hash value, determining that the first authentication is successful;

[0026] When it is determined that the hash value of the second combination value is not equal to the inverse hash value, it is determined that the anti-theft authentication fails and an alarm signal is issued.

[0027] Optionally, performing a second authentication and determining whether the second authentication is successful includes:

[0028] Encrypt the third identification code and the first authentication code according to an encryption algorithm to obtain an authentication key;

[0029] Send the authentication key to the MCU;

[0030] After receiving the authentication key, the MCU processes and returns an authentication success flag or an authentication failure flag;

[0031] Determine whether the authentication success flag bit returned by the MCU is received;

[0032] In the case of receiving the authentication success flag bit returned by the MCU, determining that the second authentication is successful;

[0033] When it is determined that the authentication failure flag bit returned by the MCU is received, it is determined that the anti-theft authentication has failed and an alarm signal is issued.

[0034] Optionally, after receiving the anti-theft authentication request instruction, the MCU processes and returns a first authentication code, including:

[0035] Generate a random number;

[0036] Combining the first identification code, the second identification code, the third identification code and the random number according to the combination algorithm to obtain a third combination value;

[0037] Calculate the hash value of the third combination value according to the hash algorithm;

[0038] Combining the random number and the hash value of the third combination value according to the combination algorithm to obtain a fourth combination value;

[0039] The fourth combined value is returned as the first authentication code.

[0040] Optionally, after receiving the authentication key, the MCU processes and returns an authentication success flag or an authentication failure flag, including:

[0041] Encrypt the third identification code and the first authentication code according to the encryption algorithm to obtain a local key;

[0042] Determining whether the local key is equal to the authentication key;

[0043] If it is determined that the local key is equal to the authentication key, returning the authentication success flag;

[0044] In the case where it is determined that the local key is not equal to the authentication key, determining whether the number of key authentication failures is greater than a preset second number threshold;

[0045] If it is determined that the number of key authentication failures is greater than the second number threshold, returning the authentication failure flag;

[0046] When it is determined that the number of key authentication failures is less than or equal to the second number threshold, return to the step of generating a random number.

[0047] On the other hand, the present invention further provides an MCU anti-theft authentication system, the system comprising a controller for executing any of the above methods.

[0048] In yet another aspect, the present invention further provides a computer-readable storage medium storing instructions, wherein the instructions are used to be read by a machine so as to enable the machine to execute any of the above methods.

[0049] Through the above technical scheme, the MCU anti-theft authentication method, system and storage medium provided by the present invention generate a first identification code and a second identification code according to the unique identification code of the vehicle and generate a third identification code according to the first identification code and the second identification code. During the generation process, the first identification code, the second identification code and the third identification code are simultaneously sent to the MCU for storage, and the first identification code, the second identification code and the third identification code are calculated and compared by a combination algorithm, calculation of hash values, etc. to complete the first authentication, and the second authentication is completed by comparison of an encryption algorithm. The MCU is authenticated through two authentication processes, thereby improving the security and reliability of the system.

[0050] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0052] Figure 1 is a flow chart of an MCU anti-theft authentication method according to an embodiment of the present invention;

[0053] Figure 2 is a flowchart of a method for performing a first authentication in an MCU anti-theft authentication method according to an embodiment of the present invention;

[0054] Figure 3 is a flowchart of a method for performing a second authentication in an MCU anti-theft authentication method according to an embodiment of the present invention;

[0055] Figure 4 It is an execution flow chart of a method in which the MCU in the MCU anti-theft authentication method according to one embodiment of the present invention processes and returns a first authentication code after receiving an anti-theft authentication request instruction;

[0056] Figure 5 It is an execution flow chart of a method in which an MCU in an MCU anti-theft authentication method processes and returns an authentication success flag or an authentication failure flag after receiving an authentication key according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0058] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. In the embodiments of this application, some existing solutions in the industry such as certain software, components, and models may be mentioned, which should be considered as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0059] like Figure 1 FIG. 1 is a flow chart of an MCU anti-theft authentication method according to an embodiment of the present invention. Figure 1 In the method, the method may include the following steps:

[0060] In step S10, a first identification code and a second identification code are set according to the unique identification code of the vehicle and sent to the MCU;

[0061] In step S11, the first identification code and the second identification code are combined according to a combination algorithm to obtain a first combination value;

[0062] In step S12, a hash value of the first combination value is calculated according to a hash algorithm as a third identification code and sent to the MCU;

[0063] In step S13, a first authentication is performed according to the first identification code, the second identification code and the third identification code, and it is determined whether the first authentication is successful;

[0064] In step S14, if the first authentication is judged to be successful, a second authentication is performed and it is judged whether the second authentication is successful;

[0065] In step S15, when it is determined that the first authentication fails, it is determined that the anti-theft authentication fails;

[0066] In step S16, when it is determined that the second authentication is successful, the anti-theft authentication is determined to be successful; when it is determined that the second authentication fails, the anti-theft authentication is determined to be failed, that is, step S15 is executed.

[0067] In this Figure 1In the method shown, step S13 is used to perform the first authentication according to the first identification code, the second identification code and the third identification code and determine whether the first authentication is successful. In this embodiment, the method for performing the first authentication according to the first identification code, the second identification code and the third identification code and determining whether the first authentication is successful can be in various forms known to those skilled in the art. In a preferred example of the present invention, the method for performing the first authentication according to the first identification code, the second identification code and the third identification code and determining whether the first authentication is successful can include the following: Figure 2 The steps shown. Figure 2 In the method of performing a first authentication according to the first identification code, the second identification code and the third identification code and determining whether the first authentication is successful may include the following steps:

[0068] In step S130, an anti-theft authentication request instruction is sent to the MCU and timing is started;

[0069] In step S131, after receiving the anti-theft authentication request instruction, the MCU processes and returns a first authentication code;

[0070] In step S132, it is determined whether a first authentication code returned by the MCU is received within a preset first time threshold;

[0071] In step S133, when it is determined that the first authentication code returned by the MCU is not received within the first time threshold, it is determined whether the number of anti-theft authentication times is less than a preset first number threshold;

[0072] If it is determined that the number of anti-theft authentication times is less than the first number threshold, the process returns to the step of sending an anti-theft authentication request instruction to the MCU and timing, that is, returns to step S130;

[0073] In step S134, if it is determined that the number of anti-theft authentications is greater than or equal to the first number threshold, it is determined that the anti-theft authentication has failed and an alarm signal is issued;

[0074] In step S135, when it is determined that the first authentication code returned by the MCU is received within the first time threshold, the first authentication code is reversed according to the combination algorithm to obtain a reverse random number and a reverse hash value;

[0075] In step S136, the reverse random number, the first identification code, the second identification code and the third identification code are combined according to a combination algorithm to obtain a second combination value;

[0076] In step S137, a hash value of the second combination value is calculated according to a hash algorithm;

[0077] In step S138, it is determined whether the hash value of the second combination value is equal to the reverse hash value;

[0078] In step S139, when it is determined that the hash value of the second combination value is equal to the reverse hash value, it is determined that the first authentication is successful;

[0079] When it is determined that the hash value of the second combination value is not equal to the inverse hash value, it is determined that the anti-theft authentication fails and an alarm signal is issued, that is, step S134 is executed.

[0080] In this Figure 1 In the method shown, step S14 can be used to perform a second authentication and determine whether the second authentication is successful when the first authentication is determined to be successful. In this embodiment, the method for performing a second authentication and determining whether the second authentication is successful can be in various forms known to those skilled in the art. In a preferred example of the present invention, the method for performing a second authentication and determining whether the second authentication is successful can include: Figure 3 The steps shown. Figure 3 In the method of performing a second authentication and determining whether the second authentication is successful, the method may include the following steps:

[0081] In step S140, the third identification code and the first authentication code are encrypted according to an encryption algorithm to obtain an authentication key;

[0082] In step S141, the authentication key is sent to the MCU;

[0083] In step S142, after receiving the authentication key, the MCU processes and returns an authentication success flag or an authentication failure flag;

[0084] In step S143, it is determined whether the authentication success flag returned by the MCU is received;

[0085] In step S144, when it is determined that the authentication success flag bit returned by the MCU is received, it is determined that the second authentication is successful;

[0086] When it is determined that the authentication failure flag bit returned by the MCU is received, it is determined that the anti-theft authentication has failed and an alarm signal is issued, that is, step S134 is executed.

[0087] In this Figure 2 In the method shown, step S131 can be used for the MCU to process and return the first authentication code after receiving the anti-theft authentication request instruction. In this embodiment, the method for the MCU to process and return the first authentication code after receiving the anti-theft authentication request instruction can be in various forms known to those skilled in the art. In a preferred example of the present invention, the method for the MCU to process and return the first authentication code after receiving the anti-theft authentication request instruction can include the following: Figure 4 The steps shown. Figure 4In the method in which the MCU processes and returns the first authentication code after receiving the anti-theft authentication request instruction, the method may include the following steps:

[0088] In step S1310, the MCU generates a random number after receiving the anti-theft authentication request instruction;

[0089] In step S1311, the first identification code, the second identification code, the third identification code and the random number are combined according to a combination algorithm to obtain a third combination value;

[0090] In step S1312, a hash value of the third combination value is calculated according to a hash algorithm;

[0091] In step S1313, the random number and the hash value of the third combined value are combined according to the combination algorithm to obtain a fourth combined value;

[0092] In step S1314, the fourth combined value is returned as the first authentication code.

[0093] In this Figure 3 In the method shown, step S142 can be used for the MCU to process and return the authentication success flag or the authentication failure flag after receiving the authentication key. In this embodiment, the method for the MCU to process and return the authentication success flag or the authentication failure flag after receiving the authentication key can be in various forms known to those skilled in the art. In a preferred example of the present invention, the method for the MCU to process and return the authentication success flag or the authentication failure flag after receiving the authentication key can include: Figure 5 The steps shown. Figure 5 In the method in which the MCU processes and returns an authentication success flag or an authentication failure flag after receiving the authentication key, the method may include the following steps:

[0094] In step S1420, after receiving the authentication key, the MCU encrypts the third identification code and the first authentication code according to the encryption algorithm to obtain a local key;

[0095] In step S1421, it is determined whether the local key is equal to the authentication key;

[0096] In step S1422, when it is determined that the local key is equal to the authentication key, an authentication success flag is returned;

[0097] In step S1423, when it is determined that the local key is not equal to the authentication key, it is determined whether the number of key authentication failures is greater than a preset second number threshold;

[0098] In step S1424, when it is determined that the number of key authentication failures is greater than the second number threshold, an authentication failure flag is returned;

[0099] In step S1425, when it is determined that the number of key authentication failures is less than or equal to the second number threshold, the process returns to the step of generating a random number.

[0100] On the other hand, the present invention further provides an MCU anti-theft authentication system, the system comprising a controller for executing any of the above methods.

[0101] In yet another aspect, the present invention further provides a computer-readable storage medium storing instructions, wherein the instructions are used to be read by a machine so as to enable the machine to execute any of the above methods.

[0102] Through the above technical scheme, the MCU anti-theft authentication method, system and storage medium provided by the present invention generate a first identification code and a second identification code according to the unique identification code of the vehicle and generate a third identification code according to the first identification code and the second identification code. During the generation process, the first identification code, the second identification code and the third identification code are simultaneously sent to the MCU for storage, and the first identification code, the second identification code and the third identification code are calculated and compared by a combination algorithm, calculation of hash values, etc. to complete the first authentication, and the second authentication is completed by comparison of an encryption algorithm. The MCU is authenticated through two authentication processes, thereby improving the security and reliability of the system.

[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0104] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0107] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0108] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0109] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0110] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0111] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A MCU anti-theft authentication method, characterized in that: The method comprises: Setting a first identification code and a second identification code according to a unique identification code of the vehicle and sending them to the MCU; Combining the first identification code and the second identification code according to a combination algorithm to obtain a first combination value; Calculate the hash value of the first combination value according to the hash algorithm as the third identification code and send it to the MCU; Performing a first authentication according to the first identification code, the second identification code and the third identification code and determining whether the first authentication is successful; If the first authentication is judged to be successful, a second authentication is performed and whether the second authentication is successful; When it is determined that the second authentication is successful, the anti-theft authentication is determined to be successful.

2. The method according to claim 1, characterized in that Performing a first authentication according to the first identification code, the second identification code, and the third identification code and determining whether the first authentication is successful includes: Send anti-theft authentication request command to MCU and start timing; After receiving the anti-theft authentication request instruction, the MCU processes and returns a first authentication code; Determine whether the first authentication code returned by the MCU is received within a preset first time threshold; If it is determined that the first authentication code returned by the MCU is not received within the first time threshold, determining whether the number of anti-theft authentication times is less than a preset first number threshold; If it is determined that the number of anti-theft authentication times is less than the first number threshold, returning to the step of sending an anti-theft authentication request instruction to the MCU and timing; When it is determined that the number of anti-theft authentications is greater than or equal to the first number threshold, it is determined that the anti-theft authentication has failed and an alarm signal is issued.

3. The method according to claim 2, characterized in that Performing a first authentication according to the first identification code, the second identification code and the third identification code and determining whether the first authentication is successful also includes: In the case where it is determined that the first authentication code returned by the MCU is received within the first time threshold, reversing the first authentication code according to the combined algorithm and obtaining a reverse random number and a reverse hash value; Combining the reverse random number, the first identification code, the second identification code and the third identification code according to the combination algorithm to obtain a second combination value; Obtaining a hash value of the second combination value by calculating according to a hash algorithm; Determining whether the hash value of the second combined value is equal to the inverse hash value; In the case where it is determined that the hash value of the second combined value is equal to the inverse hash value, determining that the first authentication is successful; When it is determined that the hash value of the second combination value is not equal to the inverse hash value, it is determined that the anti-theft authentication fails and an alarm signal is issued.

4. The method according to claim 3, characterized in that Perform the second authentication and determine whether the second authentication is successful, including: Encrypt the third identification code and the first authentication code according to an encryption algorithm to obtain an authentication key; Send the authentication key to the MCU; After receiving the authentication key, the MCU processes and returns an authentication success flag or an authentication failure flag; Determine whether the authentication success flag bit returned by the MCU is received; In the case of receiving the authentication success flag bit returned by the MCU, determining that the second authentication is successful; When it is determined that the authentication failure flag bit returned by the MCU is received, it is determined that the anti-theft authentication has failed and an alarm signal is issued.

5. The method according to claim 4, characterized in that After receiving the anti-theft authentication request instruction, the MCU processes and returns a first authentication code, including: Generate a random number; Combining the first identification code, the second identification code, the third identification code and the random number according to the combination algorithm to obtain a third combination value; Calculate the hash value of the third combination value according to the hash algorithm; Combining the random number and the hash value of the third combination value according to the combination algorithm to obtain a fourth combination value; The fourth combined value is returned as the first authentication code.

6. The method according to claim 5, characterized in that After receiving the authentication key, the MCU processes and returns an authentication success flag or an authentication failure flag, including: Encrypt the third identification code and the first authentication code according to the encryption algorithm to obtain a local key; Determining whether the local key is equal to the authentication key; If it is determined that the local key is equal to the authentication key, returning the authentication success flag; In the case where it is determined that the local key is not equal to the authentication key, determining whether the number of key authentication failures is greater than a preset second number threshold; If it is determined that the number of key authentication failures is greater than the second number threshold, returning the authentication failure flag; When it is determined that the number of key authentication failures is less than or equal to the second number threshold, return to the step of generating a random number.

7. An MCU anti-theft authentication system, characterized in that: The system comprises a controller for executing the method according to any one of claims 1 to 6.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and the instructions are used to be read by a machine so as to enable the machine to execute the method according to any one of claims 1 to 6.