The application discloses a reserved format
encryption and decryption method based on a national secret ZUC
algorithm and a distinguishable mechanism, relates to the field of mixed English and Chinese reserved format
encryption, and achieves complete consistency between a
ciphertext format and an original text through the following steps: performing multi-field
structured analysis on an original message space, generating a high-randomness key
stream by using the national secret ZUC
algorithm to perform symmetric
encryption, and finally mapping the
ciphertext into the original message space, thereby achieving complete consistency between a
ciphertext format and an original text. The method has
high security guarantee, is designed based on the correlation of fields in a format space, and designs a general reserved format encryption method and
system. The method can effectively guarantee the safety of personal sensitive information and simultaneously supports the requirement of various databases on
data format consistency.