The invention belongs to the field of
data processing, and particularly relates to a
gas meter security authentication method based on a national secret
algorithm and a related device, and the method comprises the steps that a
gas meter obtains a key negotiation file issued by a
server; a
key management model is adopted, prediction
processing is conducted according to the key negotiation file, and a
key distribution strategy corresponding to the
gas meter is obtained; accessing the ESAM module based on the
key distribution strategy, and obtaining a pre-configured
encryption file matched with the
key distribution strategy in the ESAM module; and executing data
encryption in the gas meter by adopting the pre-configured
encryption file, and uploading the encrypted gas meter data to a
server, so that the
server completes decryption of the gas meter data based on a pre-deployed decryption strategy. According to the method, the key updating strategy can be intelligently predicted, so that the
data transmission and storage process has high safety and reliability, the flexibility of
key management is guaranteed, the communication overhead caused by key updating is reduced, and the overall operation efficiency and safety of a gas meter
system are improved.