Patent ID: 7190791

Claim:
A method of generating a stream cipher having length x bytes, the method comprising the steps of: i) selecting a number n representing a number of sub-keys, and n unique prime numbers m n each representing a unique non-repeating sub-key length m n bytes; ii) generating n unique random numbers, each having non-repeating length m n bytes; iii) generating a n+1st random number R; iv) for each byte whose position in said n th random number is p, where p=R Mod m n , consecutively applying a function to each p th byte of each of said n random numbers to generate a value; v) incrementing the value of p by 1; and vi) repeating step iv) and v) and concatenating each said value produced in step iv) to the previous value produced in step iv) until said stream cipher of x bytes in length has been produced.