1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [pycrypto] PyCrypto AND Crypt_RSA integration
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20PyCrypto%20AND%20Crypt_RSA%20integration&In-Reply-To=3c5f192d0902062037n3e9f670bpddf81c525904de25%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000064.html">
<LINK REL="Next" HREF="000066.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[pycrypto] PyCrypto AND Crypt_RSA integration</H1>
<B>Mauricio Arozi</B>
<A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20PyCrypto%20AND%20Crypt_RSA%20integration&In-Reply-To=3c5f192d0902062037n3e9f670bpddf81c525904de25%40mail.gmail.com"
TITLE="[pycrypto] PyCrypto AND Crypt_RSA integration">mauricioarozi at gmail.com
</A><BR>
<I>Mon Feb 9 06:36:40 CST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="000064.html">[pycrypto] PyCrypto AND Crypt_RSA integration
</A></li>
<LI>Next message: <A HREF="000066.html">[pycrypto] PyCrypto AND Crypt_RSA integration
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#65">[ date ]</a>
<a href="thread.html#65">[ thread ]</a>
<a href="subject.html#65">[ subject ]</a>
<a href="author.html#65">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Am I helpless?
On Sat, Feb 7, 2009 at 2:37 AM, Mauricio Arozi <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">mauricioarozi at gmail.com</A>>wrote:
><i> 'I'm trying to *import/export keys* from/to Crypt_RSA<<A HREF="http://pear.php.net/package/Crypt_RSA">http://pear.php.net/package/Crypt_RSA</A>>,
</I>><i> using PyCrypto <<A HREF="http://www.dlitz.net/software/pycrypto/">http://www.dlitz.net/software/pycrypto/</A>>. '
</I>><i> and
</I>><i> 'I've made some examples to find out why *it's not working*'
</I>><i>
</I>><i> I want to import/export keys directly from/to Crypt_RSA<<A HREF="http://pear.php.net/package/Crypt_RSA">http://pear.php.net/package/Crypt_RSA</A>>and
</I>><i> PyCrypto <<A HREF="http://www.dlitz.net/software/pycrypto/">http://www.dlitz.net/software/pycrypto/</A>>." I'm not able to use
</I>><i> the same keys, so I can't verify signatures, or encrypt/decrypt stuff from
</I>><i> php to python and vice-versa. I want to know how to do it, actually I only
</I>><i> need a way to go with php, I don't depend on Crypt_RSA, it was already there
</I>><i> only.
</I>><i>
</I>><i> So in simple words, I only need to be able to encrypt/decrypt sign and
</I>><i> verify signs on php and python, simultaneously, if possible, using RSA algo.
</I>><i>
</I>><i> On Fri, Feb 6, 2009 at 10:56 PM, Mads Kiilerich <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">mads at kiilerich.com</A>>wrote:
</I>><i>
</I>>><i> Mauricio Arozi wrote, On 02/06/2009 07:53 PM:
</I>>><i>
</I>>>><i> Hello,
</I>>>><i> I'm trying to import/export keys from/to Crypt_RSA <
</I>>>><i> <A HREF="http://pear.php.net/package/Crypt_RSA">http://pear.php.net/package/Crypt_RSA</A>>, using PyCrypto <
</I>>>><i> <A HREF="http://www.dlitz.net/software/pycrypto/">http://www.dlitz.net/software/pycrypto/</A>>. My problem is that while using
</I>>>><i> PyCrypto to generate both public and private keys, the e(exponent?) is
</I>>>><i> always the same.
</I>>>><i> According to this site: <A HREF="http://pajhome.org.uk/crypt/rsa/rsa.html,">http://pajhome.org.uk/crypt/rsa/rsa.html,</A> and
</I>>>><i> yet others, the e(exponent?) is used for the public key, and d for the
</I>>>><i> private key.
</I>>>><i>
</I>>><i>
</I>>><i> Yes, many implementations and applications of RSA uses a fixed exponent -
</I>>><i> very often 65537 (F4). Usually that is a good decision and no problem -
</I>>><i> perhaps except for interoperability.
</I>>><i>
</I>>><i> And yes, interoperability is often very hard when implementing crypto
</I>>><i> stuff. IMHO an important criteria when selecting a crypto library is having
</I>>><i> examples / proof of how it interoperates with other implementations.
</I>>><i>
</I>>><i> It is not clear to me exactly what you are asking for, so I can't answer
</I>>><i> that directly - I hope someone else can do that.
</I>>><i>
</I>>><i> /Mads
</I>>><i>
</I>>><i> _______________________________________________
</I>>><i> pycrypto mailing list
</I>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
</I>>><i>
</I>>><i>
</I>><i>
</I>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20090209/6d1a9760/attachment.htm">http://lists.dlitz.net/pipermail/pycrypto/attachments/20090209/6d1a9760/attachment.htm</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000064.html">[pycrypto] PyCrypto AND Crypt_RSA integration
</A></li>
<LI>Next message: <A HREF="000066.html">[pycrypto] PyCrypto AND Crypt_RSA integration
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#65">[ date ]</a>
<a href="thread.html#65">[ thread ]</a>
<a href="subject.html#65">[ subject ]</a>
<a href="author.html#65">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">More information about the pycrypto
mailing list</a><br>
</body></html>
|