This application provides a
system code-based
encryption method, apparatus, and device. The method includes: acquiring the total number of bits in the data to be encrypted and a preset
transfer matrix; wherein the preset
transfer matrix is used to indicate the mapping relationship between the operation result of the
system code division circuit in the first
clock cycle, the operation result of the division circuit in the second
clock cycle, and the characters in the data to be encrypted received by the division circuit in the first
clock cycle; determining the remainder of the data to be encrypted based on the total number of bits, the data to be encrypted, and the preset
transfer matrix; the remainder is used to indicate the remainder after performing a
modulo operation between the data to be encrypted and the generator polynomial of the
system code; and determining the
system code encryption result of the data to be encrypted based on the remainder and the data to be encrypted. By acquiring the preset transfer matrix, the total number of bits in the data to be encrypted, and the data to be encrypted to determine the
encryption result, the problem of the long time consumption in determining the remainder using a division circuit in related technologies can be avoided.