Skip to content

Commit

Permalink
Deprecate Security::rijndael().
Browse files Browse the repository at this point in the history
This should have been done earlier when `Crypt\Mycrypt` itself was deprecated.
  • Loading branch information
ADmad committed May 4, 2018
1 parent d9e8330 commit d2f7f1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Utility/Security.php
Expand Up @@ -208,7 +208,12 @@ public static function engine($instance = null)
* @param string $key Key to use as the encryption key for encrypted data.
* @param string $operation Operation to perform, encrypt or decrypt
* @throws \InvalidArgumentException When there are errors.
* @return string Encrypted/Decrypted string
* @return string Encrypted/Decrypted string.
* @deprecated 3.6.3 This method relies on functions provided by mcrypt
* extension which has been deprecated in PHP 7.1 and removed in PHP 7.2.
* There's no 1:1 replacement for this method.
* Upgrade your code to use Security::encrypt()/Security::decrypt() with
* OpenSsl engine instead.
*/
public static function rijndael($text, $key, $operation)
{
Expand Down

0 comments on commit d2f7f1d

Please sign in to comment.