Security fixes. Switching from mcrypt soon

This commit is contained in:
Dennis Eichhorn 2016-03-27 22:06:18 +02:00
parent e3e7e2e6c7
commit 232244b981

View File

@ -415,7 +415,7 @@ class Encryption
* @param string $value Value to decrypt * @param string $value Value to decrypt
* @param string $iv Input vector * @param string $iv Input vector
* *
* @return string|false * @return string
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
@ -425,7 +425,7 @@ class Encryption
try { try {
return mcrypt_decrypt($this->cipher, $this->key, $value, $this->mode, $iv); return mcrypt_decrypt($this->cipher, $this->key, $value, $this->mode, $iv);
} catch (\Exception $e) { } catch (\Exception $e) {
return false; throw new \Exception();
} }
} }
} }