The invention relates to the technical field of
industrial communication, in particular to a
Modbus credibility enhancement method based on a national cryptographic
algorithm, which comprises the following steps: S1, a
client sends identity
authentication message information including a
time factor, a random number, a
client public key and an abstract to a
server to complete public
key exchange, identity
authentication is carried out on the two communication parties through a transmission session identifier; s2, the
client sends a key negotiation message to the
server, and generates an exclusive key of the session after receiving a
server key parameter returned after the server successfully verifies the key negotiation message; s3, key
verification is carried out between the client and the server; and S4, the client encrypts a
Modbus credible message carrying a
time factor, a random number and a
Modbus command through the exclusive key of the session, and then sends the Modbus credible message to the server, and the server analyzes and replies the Modbus credible message. According to the method, an identity
verification process is added, so that other PLCs are prevented from being operated by mistake in a PLC login scene, and the replay resistance and
tamper resistance of the message are ensured through a
time factor, a random number and an abstract.