The invention provides a message
encryption authentication method based on a Wayland protocol, and belongs to the technical field of message
encryption authentication, and the method comprises the steps: expanding a connection module based on a Wayland
library, carrying out the reloading of a communication write data and read
data function interface according to the
encryption and decryption process of an
advanced encryption standard, and carrying out the encryption and decryption of the communication write data and read
data function interface; a communication writing and reading
data function interface subjected to reloading is obtained; obtaining a reloaded
client connection request function interface and a reloaded
server communication channel creation function interface by adding a judgment logic of a key and starting a judgment logic of an encryption
algorithm; and a working mode is defined and judged, and communication is carried out through a
Unix Socket channel to complete message encryption
authentication. The problem that an attacker can hijack and monitor transmission data under the condition that an authority
system is damaged in existing message transmission is solved, meanwhile, the
client white
list function is achieved, and illegal applications not in the white
list cannot initiate connection requests.