diff options
Diffstat (limited to 'pipermail/pycrypto/attachments/20090207/3d2e1449/attachment-0001.htm')
-rw-r--r-- | pipermail/pycrypto/attachments/20090207/3d2e1449/attachment-0001.htm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pipermail/pycrypto/attachments/20090207/3d2e1449/attachment-0001.htm b/pipermail/pycrypto/attachments/20090207/3d2e1449/attachment-0001.htm new file mode 100644 index 0000000..5e9a4df --- /dev/null +++ b/pipermail/pycrypto/attachments/20090207/3d2e1449/attachment-0001.htm @@ -0,0 +1,27 @@ +<tt> +&#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><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> +<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">On Fri, Feb 6, 2009 at 10:56 PM, Mads Kiilerich <span dir="ltr">&lt;<a href="mailto:mads@kiilerich.com">mads@kiilerich.com</a>&gt;</span> wrote:<br><br> +<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mauricio Arozi wrote, On 02/06/2009 07:53 PM:<br><br> +<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br> +Hello,<br><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 class="Ih2E3d"><br> +<br><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><br> +<br> +</div></blockquote><br> +<br><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> +<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> +<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> +<br><br> +/Mads<br><br> +</font><br>_______________________________________________<br><br> +pycrypto mailing list<br><br> +<a href="mailto:pycrypto@lists.dlitz.net">pycrypto@lists.dlitz.net</a><br><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> +<br></blockquote></div><br><br> + +</tt> |