Patent ID: 7664267

Claim:
An encryption device, comprising at least one processor, the at least one processor comprising: a random number generator, receiving a main key, generating a random bit stream, and outputting a working key based at least in part on the main key and the random bit stream; a bit-based model, receiving the main key, receiving the working key, receiving a plain text bit stream based at least in part on received plain text, and generating a first frequency count and a second frequency court based at least in part on the main key, the working key, and the plain text bit stream; and an encoder, receiving the plain text bit stream, receiving the first frequency count and the second frequency count, exchanging the first frequency count and the second frequency count based at least in part on a value of the first frequency count and a value of the second frequency count, adjusting a value of a first register and a value of a second register based at least in part on the value of the first frequency count and the value of the second frequency count, encoding the plain text bit stream based at least in part on a bit-based processing scheme, the adjusted value of the first register and the adjusted value of the second register, generating a cipher bit stream based at least in part on the encoded plain text bit stream, and outputting cipher text based at least in part on the cipher text bit stream.