Am I helpless?<br><br><div class="gmail_quote">On Sat, Feb 7, 2009 at 2:37 AM, Mauricio Arozi <span dir="ltr">&lt;<a href="mailto:mauricioarozi@gmail.com">mauricioarozi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&#39;I&#39;m trying to <b>import/export keys</b> from/to <a href="http://pear.php.net/package/Crypt_RSA" target="_blank">Crypt_RSA</a>, using <a href="http://www.dlitz.net/software/pycrypto/" target="_blank">PyCrypto</a>. &#39;<br>

and<br>&#39;I&#39;ve made some examples to find out why <b>it&#39;s not working</b>&#39;<br><br>I want to import/export keys directly from/to <a href="http://pear.php.net/package/Crypt_RSA" target="_blank">Crypt_RSA</a> and <a href="http://www.dlitz.net/software/pycrypto/" target="_blank">PyCrypto</a>.&quot; I&#39;m not able to use the same keys, so I can&#39;t verify signatures, or encrypt/decrypt stuff from php to python and vice-versa. I want to know how to do it, actually I only need a way to go with php, I don&#39;t depend on Crypt_RSA, it was already there only.<br>

<br>So in simple words, I only need to be able to encrypt/decrypt sign and verify signs on php and python, simultaneously, if possible, using RSA algo.<br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">
On Fri, Feb 6, 2009 at 10:56 PM, Mads Kiilerich <span dir="ltr">&lt;<a href="mailto:mads@kiilerich.com" target="_blank">mads@kiilerich.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Mauricio Arozi wrote, On 02/06/2009 07:53 PM:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
I&#39;m trying to import/export keys from/to Crypt_RSA &lt;<a href="http://pear.php.net/package/Crypt_RSA" target="_blank">http://pear.php.net/package/Crypt_RSA</a>&gt;, using PyCrypto &lt;<a href="http://www.dlitz.net/software/pycrypto/" target="_blank">http://www.dlitz.net/software/pycrypto/</a>&gt;. My problem is that while using PyCrypto to generate both public and private keys, the e(exponent?) is always the same.<div>

<br>
According to this site: <a href="http://pajhome.org.uk/crypt/rsa/rsa.html" target="_blank">http://pajhome.org.uk/crypt/rsa/rsa.html</a>, and yet others, the e(exponent?) is used for the public key, and d for the private key.<br>


</div></blockquote>
<br>
Yes, many implementations and applications of RSA uses a fixed exponent - very often 65537 (F4). Usually that is a good decision and no problem - perhaps except for interoperability.<br>
<br>
And yes, interoperability is often very hard when implementing crypto stuff. IMHO an important criteria when selecting a crypto library is having examples / proof of how it interoperates with other implementations.<br>
<br>
It is not clear to me exactly what you are asking for, so I can&#39;t answer that directly - I hope someone else can do that.<br><font color="#888888">
<br>
/Mads<br>
</font><br></div></div>_______________________________________________<br>
pycrypto mailing list<br>
<a href="mailto:pycrypto@lists.dlitz.net" target="_blank">pycrypto@lists.dlitz.net</a><br>
<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto" target="_blank">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a><br>
<br></blockquote></div><br>
</blockquote></div><br>