The invention relates to a method and
system for using an asymmetric cryptographic
algorithm to prevent codes from being maliciously tampered, and belongs to the technical field of
encryption. The method comprises the following steps of 1, dividing original
system software into two parts of a boot program and an application program; 2, modifying an original
engineering entry address as other positions in flash; 3, burning the boot program and the application program into the flash of a main control
chip separately; 4, judging whether
system upgrading is needed or not. The method and system have the advantages that through encrypted protection of codes by an RSA
algorithm, the codes can be effectively prevented from being maliciously tampered. By means of the method and system for using theasymmetric cryptographic
algorithm to prevent the codes from being maliciously tampered, even if someone obtains the codes and the
processing method of the system, he / she cannot conduct modification,and the set
verification process cannot be skipped. The codes of the application program are encrypted, and an asymmetric algorithm is adopted for
encryption, so that the integrity of the applicationprogram cannot be damaged.