The invention provides an end-to-end encrypted data
key distribution method,
electronic equipment and a program product, and the method comprises the steps: randomly generating a
session key if an effective data key does not exist in a memory; encrypting the first data by using the public key to obtain a
session key ciphertext; the first data comprises a
session key; generating a first type of request information and sending the first type of request information to a
server, wherein the first type of request information comprises a session key
ciphertext; the
server receives the first type of request information, obtains a session key
ciphertext, decrypts the session key ciphertext by using a private key to obtain a session key, generates a data key through a pseudo-random function according to a current first
timestamp, a
client identity identifier and a
master key, and sends the data key to the
server; encrypting the data key and the first
timestamp by using the session key to obtain a data key ciphertext, and sending a first type of response information including the data key ciphertext to the
client; the
client analyzes a data key ciphertext according to the first type of response information; and decrypting the data key ciphertext by using the session key to obtain the data key and the first
timestamp, and storing the data key and the first timestamp in a memory. According to the invention, the security of end-to-end communication is greatly improved, and the calculation and storage burden of the server is reduced.