Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Do you think mcrypt is too difficult to use?
September 7, 2007, 3:39 pm
rate this thread
$key = "this is a secret key";
$input = "Let us meet at 9 o'clock at the secret place.";
$td = mcrypt_module_open('tripledes', '', 'ecb', '');
$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
mcrypt_generic_init($td, $key, $iv);
$encrypted_data = mcrypt_generic($td, $input);
broken into too many steps which is error prone...