mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 14:58:42 +00:00
Security fixes. Switching from mcrypt soon
This commit is contained in:
parent
e3e7e2e6c7
commit
232244b981
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user