The invention discloses a
cipher device adopting a Feistel-PG structure and an
encryption method. The Feistel-PG structure consists of a
round function F, the
round function F maps a t*k*m bit string into a t*k*m bit string, the input X is mapped into U through linear conversion P and nonlinear conversion G, the linear conversion P is
displacement based on the t*k*m bit string and is the position conversion of t*m k bit characters, the nonlinear conversion G is
concatenation of t nonlinear conversions based on t*k bit string, the nonlinear conversion T is nonlinear conversion based on k*m bit string, and T converts (um-1 to u1, u0) into A (S(um-1 to u1, u0)) through
S box layer and linear conversion A, wherein the
S box layer is formed by m k*k s boxes through
concatenation, and the linear conversion A is linear conversion based on k*m bit string. The
encryption method adopting the Feistel-PG
encryption structure comprises round key addition, linear conversion P and nonlinear conversion G, the output of
plaintext W after the r-round iteration is used as
ciphertext. Through the device and the method provided by the invention, the
cipher algorithm design is more flexible, and in addition, lower realization cost can be realized at the same security intensity.