The document proposes a stream cipher based on the mathematical structure underlying the three-body problem. It describes modeling the three-body problem as a set of state variables that are iteratively updated according to specific rules. This mathematical structure is then used in the design of a stream cipher, where the internal state consists of state variables modeled on the three-body problem. The keystream is generated by updating these state variables in each round. It also presents an algorithm called 3XRC4 that extends the RC4 stream cipher based on this three-body problem structure.