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=79a326836eb1010bd3a03fec1f3757cb84bc68cd;hb=7fc78debfdfd9f5d1e2f14804885ad41d55aa444;hpb=eeb7deedc9b75f01f96cd90a13b6ed2ee95f61ed 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;