<html><body bgcolor="#FFFFFF"><div>Some time ago I wrote RSA implementation inspired by pycripto, but with some improvements, strictly conforming to RSAES-OAEP standard, with proper padding and (ey generation speedup. It is practically ready to public tests and I use it in one project. I wrote correspondig part for php that works in the project, but it is not yet well tested and is so far in pure php. That means not too fast, by without server-side key generation it is fast enough for my needs. If you are interested I can send you this staff. I intend to make it public under LGPL. &nbsp;<br><br></div><div><br><br></div><div><br>09.02.2009, в 15:36, Mauricio Arozi &lt;<a href="mailto:mauricioarozi@gmail.com">mauricioarozi@gmail.com</a>> написал(а):<br><br></div><div></div><blockquote type="cite"><div>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"><a href="mailto:mauricioarozi@gmail.com">mauricioarozi@gmail.com</a></a>></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;">
'I'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>. '<br>

and<br>'I've made some examples to find out why <b>it's not working</b>'<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>." I'm not able to use the same keys, so I can'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'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"><a href="mailto:mads@kiilerich.com">mads@kiilerich.com</a></a>></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'm trying to import/export keys from/to Crypt_RSA &lt;<a href="http://pear.php.net/package/Crypt_RSA" target="_blank"><a href="http://pear.php.net/package/Crypt_RSA">http://pear.php.net/package/Crypt_RSA</a></a>>, using PyCrypto &lt;<a href="http://www.dlitz.net/software/pycrypto/" target="_blank"><a href="http://www.dlitz.net/software/pycrypto/">http://www.dlitz.net/software/pycrypto/</a></a>>. 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"><a href="http://pajhome.org.uk/crypt/rsa/rsa.html">http://pajhome.org.uk/crypt/rsa/rsa.html</a></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'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"><a href="mailto:pycrypto@lists.dlitz.net">pycrypto@lists.dlitz.net</a></a><br>
<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto" target="_blank"><a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></a><br>
<br></blockquote></div><br>
</blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>pycrypto mailing list</span><br><span><a href="mailto:pycrypto@lists.dlitz.net">pycrypto@lists.dlitz.net</a></span><br><span><a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></span><br></div></blockquote></body></html>