<?php
$key = hex2bin('000102,mn030405060708090a0b0c0d0e0f');
$message = hex2bin('5061726101676f6e000300');
$iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM);
$encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $message, MCRYPT_MODE_CBC, $iv);
$decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $encrypted, MCRYPT_MODE_CBC, $iv);
print $decrypted;
>
- Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
- Parse error: syntax error, unexpected '>' in /in/jSnTZ on line 11
Process exited with code 255.
preferences:
183.64 ms | 1399 KiB | 64 Q