The algorithm generates a stream of values which are combined with the message to encrypt and decrypt it.
To encrypt a message, add each keystream value to its corresponding character in the plaintext, rolling over back to 1 if the resulting value exceeds 26 (modulo 26 arithmetic).