Hello, does anybody know why below 2 echoes are providing diferent results
<?php
$in ='textInputTest'; $key ='AAAABBBBAAAABBBB'; $iv ='AAAABBBB';
echo base64_encode(mcrypt_encrypt(MCRYPT_RC2, $key, $in, MCRYPT_MODE_CBC, $iv)) .":";
echo base64_encode(openssl_encrypt($in, 'rc2-cbc', $key, true, $iv));
?>
(results: I6twEgBKQEaNzeP0nMeLJg== : 7bJWXaOJf31WYcJn2UcDrg==)
...
second result is the same that C# and some other tools provides. So OpenSSL conform my needs... But I still want to know why MCRYPT result is different because the same encryption mode, cypher, key and init-vector used...