@ 2015-10-20T22:03:50Z <?php
$x = openssl_encrypt('0000000000000000', 'aes-128-ctr', '0123456789abcdef', OPENSSL_RAW_DATA, '0000000000000000');
$y = openssl_encrypt('0000000000000001', 'aes-128-ctr', '0123456789abcdef', OPENSSL_RAW_DATA, '0000000000000000');
$z = '';
for ($i = 0; $i < 16; ++$i) {
$z .= \ord(
\chr($x[$i]) ^ \chr($y[$i])
);
}
var_dump(
bin2hex($x),
bin2hex($y),
bin2hex($z)
);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.2.29 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught Error: Call to undefined function openssl_encrypt() in /in/Tf5Kd:3
Stack trace:
#0 {main}
thrown in /in/Tf5Kd on line 3
Process exited with code 255 . Output for 5.4.15 - 5.4.45 , 5.5.24 - 5.5.35 , 5.6.7 - 5.6.28 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.10 , 7.2.0 string(32) "275c196a696d41a3e0a5c1fe35566a86"
string(32) "275c196a696d41a3e0a5c1fe35566a87"
string(32) "30303030303030303030303030303030"
Output for 5.4.0 - 5.4.14 Fatal error: Call to undefined function openssl_encrypt() in /in/Tf5Kd on line 3
Process exited with code 255 . preferences:dark mode live preview
214.52 ms | 401 KiB | 227 Q