The present application discloses a method, device, and medium for controlling a
drone based on a random key
stream, and relates to the field of aircraft control technology. The method includes: presetting a
chaotic initial value for the main
chaotic system of the
encryption end; selecting a switching strategy based on the current state component of the main
chaotic system to switch the auxiliary chaotic
system; generating a random key
stream coefficient through a seed random
number generator, combining the random key
stream coefficient with the chaotic initial value to obtain a private key; obtaining the
plaintext of the aircraft measurement data, injecting the
plaintext into the chaotic system, and generating
ciphertext in combination with the random key stream coefficient; transmitting the
ciphertext to the decryption end,
synchronizing the private key and the switching strategy at the decryption end, and restoring the
plaintext; inputting the restored plaintext into a state
feedback controller to generate an anti-saturation control instruction, and the state
feedback controller includes a nonlinear compensation function. The present application uses the above method to implement
encryption and decryption of the aircraft's measurement data using the chaotic system key stream, extend the private key length, and improve security.