Dear Friends,
Its my third day in PHP and first day in this form. The reason I am here I want encrypt credit cards and then dycrypt them if user wants.
To test I use this following code.
<?php
$iv = mcrypt_create_iv(mcrypt_get_iv_size (MCRYPT_RIJNDAEL_256, MCRYPT_MODE_EC😎, MCRYPT_RAND);
$key = "99";
$text = "Haroon";
echo strlen ($text)."\n";
echo "$text";
$crypttext = mcrypt_encrypt (MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_ECB, $iv);
echo strlen ($crypttext)."\n";
echo "crypttext";
?>
Output it this
Fatal error: Call to undefined function: mcrypt_create_iv() in D:\Projects\Estrats\phplicense\test.php on line 2
Can you give a clue how to solve this problem.
Regards,
Haroon.