Text this: Stream ciphers and number theory