Could not initialize mcrypt

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • codearcher@grad.com

    #1

    Could not initialize mcrypt

    I have the latest version of XAMPP installed on Windows XP Pro SP2. I
    am trying to use mcrypt with rijnndael-128 on ecb:
    "
    $cr = mcrypt_module_o pen('rijndael-128','','ecb',' ') or
    die('<br><br>Co uld not open Module<br><br>' );
    $iv = mcrypt_create_i v(mcrypt_enc_ge t_iv_size($cr), MCRYPT_RAND)
    or die('<br><br>Co uld not create iv<br><br>');
    mcrypt_generic_ init($cr, $key, $iv) or die('<br><br>Co uld not
    initialize mcrypt<br><br>' );
    $remix = mcrypt_generic( $td, $mix) or die('<br><br>Co uld not make
    a remix<br><br>') ;
    "
    (The above code is inside a function)
    all the variables are ok. When i run the script, it returns "Could not
    initialize mcrypt". Why is it crashing there?

Working...