openssl_encrypt, ecb and IV

From: Date: Thu, 24 Jan 2013 16:55:35 +0000
Subject: openssl_encrypt, ecb and IV
Groups: php.general 
Request: Send a blank email to php-general+get-320099@lists.php.net to get a copy of this message
Hi list, I am having trouble with error messages saying "Using an empty Initialization Vector (iv) is potentially insecure and not recommended" These messages turn up using horde which uses ecb. I don't know the inner workings of php and openssl but if I understand correctly, there is no IV used in ecb hence there should be no error message according to this: http://svn.php.net/viewvc?view=revision&revision=304179 (I am running php version 5.3.20) Does anybody have any idea why I am getting these errors ? I can reproduce them using this code: <?php openssl_encrypt ("Hallo","bf-ecb","abcdef"); ?> Regards Stephan

« previous php.general (#320099) next »