From 8cb44db3f42aacecf57145160b9710935d048a4b Mon Sep 17 00:00:00 2001 From: fordnox Date: Mon, 3 Nov 2014 16:00:02 +0200 Subject: [PATCH] The IV parameter must be as long as the blocksize fix --- src/bb-library/Box/Crypt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-library/Box/Crypt.php b/src/bb-library/Box/Crypt.php index ccf043398..3ec597f05 100644 --- a/src/bb-library/Box/Crypt.php +++ b/src/bb-library/Box/Crypt.php @@ -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)); } } \ No newline at end of file