Hi,

I'm working on a PHP application that's talking with someone else's application via SOAP. For one of the calls, the other application is requiring encrypted data using rijndael encryption (we've tried to get them to simply use https, to no avail). So I have to make an initial call to obtain a public key from them. The data that's returned is the following XML structure (values changed):

<RSAKeyValue>
<Modulus>lkditowlkdjflkjblkj23083blxlws93w3...etc.</Modulus>
<Exponent>ABCD</Exponent>
</RSAKeyValue>

According to the mcrypt stuff that I've read, I need a key -- but there's no mention of a modulus or an exponent, only of a key and an initialization vector.

So how am I supposed to use the values that have been returned to me to encrypt data that can then be decrypted on the other end?

I've Googled for hours, and I've seen many references to "modulus" and "exponent" in encryption articles, but I haven't been able to find anything that's PHP specific.

Thanks much for any help.

Rich

    Write a Reply...