The invention belongs to the technical field of single-
chip microcomputer safety. The invention particularly provides an
encryption protection method for single-
chip microcomputer software and a storage medium. The method comprises the following steps: randomly generating multiple groups of original passwords, calculating a check value of each group of original passwords by using a
hash function,performing multiple groups of hash operations on each group of original passwords to obtain HASH1, performing symmetric
encryption on the HASH1 to obtain CODE1, and burning and inputting the originalpasswords, the check values and the CODE1 into a fixed
storage area of a
single chip microcomputer; then presetting and storing an independent UID, performing operation on the checked original
password by using a plurality of hash functions to obtain HASH1, adding an independent UID to the HASH1, performing hash operation again to obtain HASH2, performing symmetric
encryption on the HASH2 to obtain CODE2, and writing the CODE2 into a region position of the original
password in a covering manner; and finally, randomly accessing each group of CODE1 and corresponding CODE2 data, and performing legal copy
verification through calculation. According to the scheme, encryption protection of single-
chip microcomputer software with an application
programming function is supported, and whether
software operated by a single-chip microcomputer is a legal genuine version or not is verified by using an independent UID and an original
password of the single-chip microcomputer or a
peripheral chip andthe like.