Disclosed in the present invention are a
train-to-ground communication method and apparatus, and a device and a storage medium. The method comprises: acquiring a preset
master key and operation-related information of a
train, and determining a working key on the basis of the preset
master key and the operation-related information; encrypting the working key by means of the preset
master key so as to generate working-key
ciphertext, and sending the working-key
ciphertext to a ground device, so as to acquire, on the basis of the working-key
ciphertext, a confirmation message sent by the ground device, and generating a consistency check result on the basis of the confirmation message; and when the consistency check result indicates that the check is successful, communicating with the ground device by means of the working key. A
key distribution center is established on the basis of
train-to-ground
wireless communication, so as to realize
key management of the train-to-ground
wireless communication; a train acquires a
session key from the
key distribution center on the basis of operation-related information, and uses the
session key to perform encrypted communication; and when the
session key is not acquired, a standby key is used for encrypted communication, thereby improving the communication reliability, and ensuring the
operation safety of the train.