Browse Source

Merge pull request #12045 from cakephp/deprecate-rijndael

Deprecate Security::rijndael().
Mark Story 8 years ago
parent
commit
0fb1cc79fb
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/Utility/Security.php

+ 6 - 1
src/Utility/Security.php

@@ -208,7 +208,12 @@ class Security
      * @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)
     {