Stream cipher
To be secure, the period of the keystream (the number of digits output before the stream repeats itself)  needs to be large enough. If the sequence repeats, then the overlapping ciphertexts can be aligned against each other "in depth", and there are techniques which allow extraction of the plaintext form ciphertexts generated using these methods.