encrypt() not working


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

$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;

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

Not Allowed: Cannot perform requested function or action.

Please HELP !!


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

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