[pycrypto] PyCrypto AND Crypt_RSA integration
Sergey Chernov
real.sergeych at gmail.com
Mon Feb 9 07:07:53 CST 2009
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.
09.02.2009, в 15:36, Mauricio Arozi <mauricioarozi at gmail.com>
написал(а):
> Am I helpless?
>
> On Sat, Feb 7, 2009 at 2:37 AM, Mauricio Arozi <mauricioarozi at gmail.com
> > wrote:
> 'I'm trying to import/export keys from/to Crypt_RSA, using PyCrypto. '
> and
> 'I've made some examples to find out why it's not working'
>
> I want to import/export keys directly from/to Crypt_RSA and
> PyCrypto." 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.
>
> 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.
>
> On Fri, Feb 6, 2009 at 10:56 PM, Mads Kiilerich <mads at kiilerich.com>
> wrote:
> Mauricio Arozi wrote, On 02/06/2009 07:53 PM:
> Hello,
> I'm trying to import/export keys from/to Crypt_RSA <http://pear.php.net/package/Crypt_RSA
> >, using PyCrypto <http://www.dlitz.net/software/pycrypto/>. My
> problem is that while using PyCrypto to generate both public and
> private keys, the e(exponent?) is always the same.
>
> According to this site: http://pajhome.org.uk/crypt/rsa/rsa.html,
> and yet others, the e(exponent?) is used for the public key, and d
> for the private key.
>
> 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.
>
> 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.
>
> 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.
>
> /Mads
>
> _______________________________________________
> pycrypto mailing list
> pycrypto at lists.dlitz.net
> http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto
>
>
>
> _______________________________________________
> pycrypto mailing list
> pycrypto at lists.dlitz.net
> http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.dlitz.net/pipermail/pycrypto/attachments/20090209/1d2de4d5/attachment.htm
More information about the pycrypto
mailing list