ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> Programming

Issue with PHP Code

Author Message
athady



Joined: 08 Oct 2015
Posts: 1

PostPosted: Thu Oct 08, 2015 3:31 am    Post subject: Issue with PHP Code Reply with quote

HI,

i try to make plugin for Hostbill. when i try to run PHP code i'm getting error.

Quote:
function encrypt($plainText,$key)
{
$secretKey = hextobin(md5($key));
$initVector = pack("C*", 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f);
$openMode = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '','cbc', '');
$blockSize = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, 'cbc');
$plainPad = pkcs5_pad($plainText, $blockSize);
if (mcrypt_generic_init($openMode, $secretKey, $initVector) != -1)
{
$encryptedText = mcrypt_generic($openMode, $plainPad);
mcrypt_generic_deinit($openMode);

}
return bin2hex($encryptedText);
}


This is Line
$encrypted_data=encrypt($merchant_data,$working_key);
Back to top
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 190

PostPosted: Fri Oct 09, 2015 8:38 am    Post subject: Reply with quote

Hi,

We have replied to your ticket that you raised in our Support Help Desk about this. Please follow up in that ticket.
_________________
Alastair

ionCube
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> Programming All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum