Made NullCryptoStream compatible again wit implemented interface.
authorRoland Haeder <roland@mxchange.org>
Wed, 5 Feb 2014 18:16:45 +0000 (19:16 +0100)
committerRoland Haeder <roland@mxchange.org>
Wed, 5 Feb 2014 18:16:45 +0000 (19:16 +0100)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/streams/crypto/class_NullCryptoStream.php

index 79a3268..c42e6d1 100644 (file)
@@ -50,9 +50,10 @@ class NullCryptoStream extends BaseStream implements EncryptableStream {
         * 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
         */
-       public function encryptStream ($str) {
+       public function encryptStream ($str, $key = NULL) {
                // Just handle it over
                $encrypted = (string) $str;