The invention discloses a code-controlled data
encryption method for a variability key, and relates to an information electronic technology. The invention mainly provides a data
encryption method fora non-fixed secret key, and the core of the method is the transformation of'a clear key + a dark key-a variable key '. According to the method, a dynamic'private key 'and a static'dark key' are introduced and are decomposed into a'control code 'and a'controlled code' after being mixed, and then repeated'code control transformation 'is performed to form a'variability key'. And then
encryption is carried out through a variability key. The technology of the invention is an unfixed secret key
system with an unfixed secret key, which is created outside the existing fixed secret key
system. A thirdsystem, namely a double-key symmetric
system, is invented and created outside two existing systems, namely a single-key symmetric system and a double-key asymmetric system. Because the repeated transformation is discrete and agreed, the method is more suitable for the implementation of
software and the use of an embedded
chip. The technology is simple, convenient, feasible, safe and reliable, andcan be widely applied to the fields of national defense, finance, Internet, daily life and the like.