The invention discloses a
Bluetooth data
encryption method based on a 32-bit
chip, and the method comprises the following steps: S1, determining an
encryption and decryption key through a
Bluetooth end and an external opposite end, encrypting the
encryption and decryption key through employing a first safety storage key, and obtaining a first
ciphertext, and storing the first
ciphertext; s2, when the
Bluetooth end receives the second
ciphertext and transmits the second ciphertext to the MCU, the MCU reads the first ciphertext; s3, decrypting the first ciphertext through the first secure storage key to obtain an encryption and decryption key, decrypting the second ciphertext by using the encryption and decryption key to obtain a
plaintext, and adding one to the use count of the first secure storage key; and S4, destroying the first secure storage key reaching the upper limit of the number of times of use, and generating a second secure storage key to encrypt the
plaintext and the encryption and decryption key. According to the invention, the communication between the external Bluetooth module and the MCU and the
processing security of the MCU after receiving the data can be effectively ensured, the key is prevented from being easily acquired, and the
reverse analysis attack aiming at the embedded equipment can be effectively prevented.