Added debug line.
authorRoland Haeder <roland@mxchange.org>
Sat, 25 Apr 2015 22:46:14 +0000 (00:46 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 25 Apr 2015 22:46:14 +0000 (00:46 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/streams/crypto/class_McryptStream.php

index 3973d71..2a60fe2 100644 (file)
@@ -62,6 +62,9 @@ class McryptStream extends BaseStream implements EncryptableStream {
         * @return      $encrypted      Encrypted string
         */
        public function encryptStream ($str, $key = NULL) {
+               // Debug message
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']: key[' . gettype($key) . ']=' . $key);
+
                // Init crypto module
                $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);
                $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);