<?php
$key = 'FSHcT+sfRO/siok2ooweuA==';
$key = base64_decode($key);
$message = 'I want to decode this';
$iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM);
print $iv.<p>;
$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 base64_encode($encrypted);
?>
- 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/HerPi on line 8
Process exited with code 255.
preferences:
186.02 ms | 1395 KiB | 64 Q