The invention provides a symmetric
encryption and decryption
algorithm subpackage
processing method, which comprises the following steps of: S1, dividing an x-bit
plaintext into front y bits and rear z bits, generating a y-bit
ciphertext from the front y bits through a symmetric
encryption algorithm with the same key, and ensuring that the
encryption length is y bits; s2, the rear z bits of the x-bit
plaintext generate z-bit
ciphertext through a symmetric encryption
algorithm with the same key, x, y and z are positive integers and are integer multiples of the minimum length of the encryption algorithm, and the rear z bits of the
plaintext resume through a
breakpoint; and S3, connecting the ciphertexts obtained through the two times of segmentation encryption in the S1 and the S2 together to obtain a final
ciphertext. The method has the advantages that: 1, time consumption can be saved under the condition that a
transmission medium is unstable; and by adopting segmented encryption transmission, the probability of
transmission failure is greatly reduced, and the wasted time is in direct proportion to the data length even if the
transmission failure occurs. Therefore, the
time overhead is saved. Under the condition that the transmission capacity of the
transmission medium is insufficient, subpackage
processing is adopted, and the limitation of the
transmission medium can be avoided;