* Encrypt the string with fixed salt
*
* @param $str The unencrypted string
+ * @param $key Optional key, if none provided, a random key will be generated
* @return $encrypted Encrypted string
*/
- function encryptStream ($str);
+ function encryptStream ($str, $key = null);
/**
* Decrypt the string with fixed salt