The IV parameter must be as long as the blocksize fix

This commit is contained in:
fordnox committed 2014-11-03 16:00:02 +02:00
1 parent 44de972ed1
commit 8cb44db3f4
1 file changed
+1 -1
+1 -1
View File
@@ -63,6 +63,6 @@ class Box_Crypt implements \Box\InjectionAwareInterface
if (null == $pass) {
$pass = $this->di['config']['salt'];
}
return pack('H*', hash('sha256', $pass));
return pack('H*', hash('md5', $pass));
}
}