encrypt() not working

Tags: 

I am using CPHP (Connect PHP) for this encryption.

$key = "ABCDEFGHABCDEFGH";
$iv = "0000000000000000";
$cipher = new Crypto\AES();
$cipher->Mode->LookupName = 'CBC';
$cipher->IV->Value = $iv;
$cipher->KeySize->LookupName = '128_bits';
$cipher->Padding->ID = 1;
$cipher->Key = $key;
$cipher->Text = $string;
$cipher->encrypt();

For the last line ($cipher->encrypt()) I am getting the output as :

Not Allowed: Cannot perform requested function or action.

Please HELP !!

Comments

Just changed the environment from CUTS to production and it worked.

Zircon - This is a contributing Drupal Theme
Design by WeebPal.