]> git.mxchange.org Git - core.git/commitdiff
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 79a326836eb1010bd3a03fec1f3757cb84bc68cd..c42e6d1fbefed0b1d384a343c8efcd97b7c7a478 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;