How does a stream cipher work?

I wrote this because I felt like it. This post is not associated with my employer.