The invention relates to the technical field of
electronic equipment, in particular to a flashing method of an
operating system, which comprises the following steps of: generating limit information containing a customer identifier ID and a
mirror image validity period, encrypting the limit information as a file header through the customer identifier ID, and encrypting a main body of a
mirror image by the limit information to form a double-encrypted file; binding the flash tool with the
client identifier ID and the flash equipment hardware information, verifying the binding legality, decrypting the file header, and verifying the consistency of the
client identifier ID in the limit information and the validity period of a
mirror image; and after the
verification is passed, decrypting the main body of the mirror image and burning the main body to the target equipment, and clearing the temporary data after the burning is completed. According to the method, the mirror image is prevented from being leaked and tampered through a dual
encryption mechanism,
authorization verification in an offline scene is achieved through hardware binding, the use range of the mirror image is accurately controlled in combination with multi-dimensional
verification such as the period of validity and the
file size, and the safety and
controllability of the flash process are effectively improved.