Link to home
Start Free TrialLog in
Avatar of darlanfrancisco
darlanfrancisco

asked on

Decrypt message sent for applicatory delphi 6 for php

Necessary decryptar a message sent of a applicatory one in Delphi6 for a webservice in php. The message was encrypt with algorithm RSA using the LockBox component. To decryptar I am using the Crypt_RSA package, more I am not obtaining. Yours truly, Gabriel Silveira Platt
Avatar of aikimark
aikimark
Flag of United States of America image

Why not use TPLockbox to decrypt as well?  Who made the Crypt_RSA package?

Is this your Delphi or PHP application?  What role do you play in either of these applications?
Avatar of darlanfrancisco
darlanfrancisco

ASKER

I have an application in delphi that it connects with one web services, ordering codified messages, these messages is codified using algorithm RSA, in the TPLockbox component. These messages will count information of scheme, where the application is installed in delphi. The Crypt_RSA package is disponivel in the site http://pear.php.net/package/Crypt_RSA.
Thanks
@darlanfrancisco

The key word in the following Crypt_RSA  description:
"cryptography like RSA"

is "like".  What this description tells me is that the Crypt_RSA mimics RSA, but does not implement it entirely/accurately.  Your problem lies with the routines you use on the server side, not with your Delphi/TPLockbox  application's RSA encryption.
Yes, the problem is in the hour to decode the message in web services. Necessary to decode in accordance with the word chosen to codify the message. Some suggestion, I am made use to change web services, of php for another language.

thanks,
ASKER CERTIFIED SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@darlanfrancisco

Does this library correctly decrypt your Delphi/TPLockbox RSA message?  I am not a PHP expert, so I would appreciate the feedback.

Thanks for the points.
As i remember, this script won't even have more than 256'bit keys.