|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-11-25 21:58 UTC] aharvey@php.net
-Status: Open
+Status: Not a bug
-Type: Bug
+Type: Documentation Problem
[2014-11-25 21:58 UTC] aharvey@php.net
[2014-11-25 22:05 UTC] ogarbe at voyageprive dot com
[2014-11-25 22:09 UTC] aharvey@php.net
-Summary: mcrypt_decrypt need key with specific length
+Summary: [FR] mcrypt_decrypt need key with specific length
-Status: Not a bug
+Status: Re-Opened
-Package: mcrypt related
+Package: Translation problem
[2014-11-25 22:09 UTC] aharvey@php.net
[2014-12-28 17:46 UTC] jeanseb@php.net
[2014-12-28 17:47 UTC] jeanseb@php.net
-Status: Re-Opened
+Status: Closed
-Assigned To:
+Assigned To: jeanseb
[2014-12-28 17:47 UTC] jeanseb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 22:00:01 2026 UTC |
Description: ------------ mcrypt_decrypt / encrypt changed between 5.4 and 5.6 in 5.6, and contrary to the doc, the second parameter $key needs to be of sizes 16, 24 or 32 supported, the key should be padded with "\0" to match correct sizes. Test script: --------------- $decryptText = mcrypt_decrypt( MCRYPT_RIJNDAEL_256, '1234567890ABCDEFGHIJKLM', $cryptText, MCRYPT_MODE_CBC, 'aworkingvector' ); Expected result: ---------------- Dont throw this error mcrypt_encrypt(): Key of size 22 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported Or fix the documentation