This invention discloses a method and
system for symmetric encrypted communication between a UAV and its storage compartment based on environmental entropy. The communication method includes: S1, before the UAV leaves the compartment, the storage compartment collects environmental entropy sources to form an initial
data set; S2, the initial
data set is hashed and truncated to output a symmetric
encryption key; S3, after the storage compartment transmits the symmetric
encryption key, the UAV generates an initial message and obtains the current
timestamp during its exit operation; S4, the UAV processes the initial message in blocks to obtain standard data blocks; S5, a
random number seed is generated using the key and
timestamp as input; S6, a permutation vector is obtained based on the
random number seed, the data block sequence is rearranged, an encrypted message is generated, and transmitted to the storage compartment; S7, the storage compartment performs inverse permutation restoration
processing on the encrypted message and parses it to obtain the initial message. The technical solution disclosed in this invention can generate an unpredictable, truly random key, ensuring the communication security between the UAV and the storage compartment.