| CPC H04L 9/0877 (2013.01) [H04L 9/0825 (2013.01); H04L 9/085 (2013.01); H04L 9/14 (2013.01)] | 20 Claims |

|
1. A data processing method comprising:
receiving a data encryption request transmitted by a client comprising to-be-encrypted data and a first key identifier;
determining a current total service demand of a first hardware security module server cluster and a current total service demand of a second hardware security module server cluster, wherein the current total service demand is a sum of service demands of all servers in each of the respective first and second hardware security module server clusters, and wherein the service demand is a quantity of a key requesting service or a data encryption service;
determining a target hardware security module server cluster based on the hardware security module server cluster with a minimum total service demand;
determining a target hardware security module server of the target hardware security module server cluster;
transmitting the first key identifier to the target hardware security module server such that the target hardware security module server obtains a root key corresponding to the first key identifier and encrypts the root key to generate a master key;
receiving the master key transmitted by the target hardware security module server;
encrypting the master key to generate a data key; and,
encrypting the to-be-encrypted data using the data key to generate encrypted data.
|