This application relates to a
secure communication method, apparatus, air conditioner, and storage medium. The method includes: acquiring a data frame to be sent, counting the data frames already sent to obtain the number of sent frames, determining a sending
communication interface from multiple candidate communication interfaces based on the number of sent frames, and sending the data frame to be sent to the receiving end through the sending
communication interface. By counting the sent data frames to determine the corresponding sending
communication interface, this method can solve the technical problem that existing encrypted communication technologies often use a single communication interface for
data transmission. When this communication interface is attacked by man-in-the-middle attacks such as
ARP spoofing or SSL stripping, or is eavesdropped by unauthorized devices, attackers can directly intercept the transmitted
ciphertext and even crack the key through protocol vulnerabilities, leading to a complete failure of communication security and reliability.