Patent ID: 8942373
Filing Date: 2015-01-27
Classification: H04L

Abstract:
1. A data encryption method carried out in at least one computer, comprising: comprising: packeting plaintext data to be encrypted; generating true random numbers with a predetermined length and a random seed with a predetermined length formed by the true random numbers; establishing an encryption algorithm set and assigning an index to each encryption algorithm in the encryption algorithm set; acquiring data from the random seed to generate an encryption algorithm index random string; traversing synchronously the encryption algorithm index random string and the plaintext to be encrypted; selecting an encryption algorithm from the encryption algorithm set according to the encryption algorithm index when traversing the encryption algorithm index random string and assigning the encryption algorithm to each group of the plaintext data at the corresponding position; encrypting each group of the plaintext data with the assigned encryption algorithm respectively; and arranging the encrypted data according to its corresponding position in the plaintext data to form a ciphertext; wherein the step of acquiring comprises: generating and storing an initial message digest value of the encryption algorithm index random string through message digest operation; generating a subsequent message digest value of the encryption function algorithm index random string through message digest operation; and comparing the subsequent message digest value with the previously stored initial message digest values, and if the same, acquiring the data from the random seed again to generate a new encryption function algorithm index random string, and then comparing the message digest values until a different encryption function algorithm index random string is determined; if not the same, saving the encryption function algorithm index random string currently generated.