X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fstreams%2Fcrypto%2Fclass_NullCryptoStream.php;h=c42e6d1fbefed0b1d384a343c8efcd97b7c7a478;hp=25372a9944ee49e1173737b3ee99ac82bf84f563;hb=7fc78debfdfd9f5d1e2f14804885ad41d55aa444;hpb=e7040f10e90178e789f97ef7e195b479250e241a diff --git a/inc/classes/main/streams/crypto/class_NullCryptoStream.php b/inc/classes/main/streams/crypto/class_NullCryptoStream.php index 25372a99..c42e6d1f 100644 --- a/inc/classes/main/streams/crypto/class_NullCryptoStream.php +++ b/inc/classes/main/streams/crypto/class_NullCryptoStream.php @@ -3,11 +3,11 @@ * A null-encryption stream does not encrypt anything but can be used if e.e. * mcrypt is not installed. * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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;