Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- openssl_encrypt() crash with old OpenSSL --EXTENSIONS-- openssl --FILE-- <?php op..
Decoded Output download
--TEST--
openssl_encrypt() crash with old OpenSSL
--EXTENSIONS--
openssl
--FILE--
<?php
openssl_encrypt('', 'AES-128-CBC', 'foo');
var_dump("done");
?>
--EXPECTF--
Warning: openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and not recommended in %s on line %d
string(4) "done"
Did this file decode correctly?
Original Code
--TEST--
openssl_encrypt() crash with old OpenSSL
--EXTENSIONS--
openssl
--FILE--
<?php
openssl_encrypt('', 'AES-128-CBC', 'foo');
var_dump("done");
?>
--EXPECTF--
Warning: openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and not recommended in %s on line %d
string(4) "done"
Function Calls
openssl_encrypt | 1 |
Stats
MD5 | 63a87cbf504d0be2ef51fe12ac076636 |
Eval Count | 0 |
Decode Time | 83 ms |