this line of comment can be refactorred into better English, for example "Encrypts a stream of data using AES with a randomly generated key. "