摘要 |
Disclosed is method for processing data, the data is input in binary form, it is then arranged into segments or blocks. Next a value based on the binary ones in the segments is determined for each segment. Then using the values a location in each segment is determined, where a predetermined transformation is to be applied to a sequence of bits. Finally, the transformation is performed on the sequence of bits at each of the locations and the transformed sequence of bits is output. The transformation may be a sequence of transformations and the segment values used in a counting operation. At each step of the counting operation it is determined whether a transformation is to be applied. Also, disclosed is a method for processing the output data to give the input data. The present method can be applied to the encryption and decryption of data, data comparison and verification, and random data generation. |