I need to integrate an xml service to our application and the web service is using phpseclib AES Encryption and Decryption. So, I need to understand the flow of phpseclib. We are working on .NET C# environment and we can not analyse that php code. Please find the sample php code for the implementation and advice me how to convert it to C#.
set_include_path('vendor/pear');
require_once '/Crypt/AES.php';
require_once '/SOAP/Client.php';
$password = 'ewad3x45efc542b3897e23esgy4s6xnm';
$data = '
<WorkRequest version="3.0">
<work>WORK NOW!</work>
</WorkRequest> ';
$crypt = new Crypt_AES();
$crypt->setKey($password);
$data = gzencode($data);
$data = $crypt->encrypt($data);
As you can see, there is no IV or such things. Only setKey and encrypt methods are used in example code.