From: Roland Haeder Date: Wed, 5 Feb 2014 18:16:45 +0000 (+0100) Subject: Made NullCryptoStream compatible again wit implemented interface. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7fc78debfdfd9f5d1e2f14804885ad41d55aa444;p=core.git Made NullCryptoStream compatible again wit implemented interface. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/streams/crypto/class_NullCryptoStream.php b/inc/classes/main/streams/crypto/class_NullCryptoStream.php index 79a32683..c42e6d1f 100644 --- a/inc/classes/main/streams/crypto/class_NullCryptoStream.php +++ b/inc/classes/main/streams/crypto/class_NullCryptoStream.php @@ -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;