An embodiment of the present invention provides a
key management method, apparatus, electronic device, and storage medium, which relate to the field of communication technologies. Applied to a first cryptographic
machine, the method includes: when the number of terminals participating in a network conference changes, interacting with a second cryptographic
machine to generate a first key; through the first key, performing
data transmission of the network conference with cryptographic machines other than the first cryptographic
machine in a target cryptographic machine; where the target cryptographic machine is a cryptographic machine connected to a terminal participating in the network conference, and the first cryptographic machine and the second cryptographic machine are two of the cryptographic machines in the target cryptographic machine. Therefore, in the embodiment of the present invention, when the number of terminals participating in the network conference changes, two cryptographic machines are randomly selected from the cryptographic machines connected to the terminals participating in the network conference at this time for key negotiation, instead of uniformly generating keys by a
key management server, thereby improving the security of the network conference.