The invention relates to a
high security character string symmetrical
encryption and decryption method. The
encryption method comprises the steps of receiving a to-be-encrypted character string, an
encryption vector and encryption offset; generating an encryption dynamic factor according to the encryption vector, and splitting the to-be-encrypted character string, thereby obtaining two sections ofsplit character strings; and generating a time encryption factor according to
current time, adding the time encryption factor to the two sections of split character strings, combining the split character strings, and encrypting the combined character string according to the encryption offset, thereby obtaining the encrypted character string. The decryption method is reverse operation of the encryption method. Difference is calculated through utilization of a
current time decryption factor and the time encryption factor extracted after the split is carried out. Decryption is carried out if a difference value does not exceed a threshold. Decryption failure is returned if the difference value exceeds the threshold. Compared with the prior art, the methods have the advantages that the security performance is high, the exhaustion break is prevented, and the break difficulty is high.