- base64_encode: documentation ( source)
<?php
$key = "12345678abcdefgh12345678abcdefgh";
$iv = "12345678abcdefgh";
$plaindata = "c=klient,pobocka&i=obrazek.jpg&w=800&wm=tr,300";
$enc = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plaindata, MCRYPT_MODE_ECB));
echo($enc);