summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2009q1/000065.html
blob: 3d1a2616e63754eeed8ee1252865766f01a5d903 (plain)
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 &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">mauricioarozi at gmail.com</A>&gt;wrote:

&gt;<i> 'I'm trying to *import/export keys* from/to Crypt_RSA&lt;<A HREF="http://pear.php.net/package/Crypt_RSA">http://pear.php.net/package/Crypt_RSA</A>&gt;,
</I>&gt;<i> using PyCrypto &lt;<A HREF="http://www.dlitz.net/software/pycrypto/">http://www.dlitz.net/software/pycrypto/</A>&gt;. '
</I>&gt;<i> and
</I>&gt;<i> 'I've made some examples to find out why *it's not working*'
</I>&gt;<i>
</I>&gt;<i> I want to import/export keys directly from/to Crypt_RSA&lt;<A HREF="http://pear.php.net/package/Crypt_RSA">http://pear.php.net/package/Crypt_RSA</A>&gt;and
</I>&gt;<i> PyCrypto &lt;<A HREF="http://www.dlitz.net/software/pycrypto/">http://www.dlitz.net/software/pycrypto/</A>&gt;.&quot; I'm not able to use
</I>&gt;<i> the same keys, so I can't verify signatures, or encrypt/decrypt stuff from
</I>&gt;<i> php to python and vice-versa. I want to know how to do it, actually I only
</I>&gt;<i> need a way to go with php, I don't depend on Crypt_RSA, it was already there
</I>&gt;<i> only.
</I>&gt;<i>
</I>&gt;<i> So in simple words, I only need to be able to encrypt/decrypt sign and
</I>&gt;<i> verify signs on php and python, simultaneously, if possible, using RSA algo.
</I>&gt;<i>
</I>&gt;<i> On Fri, Feb 6, 2009 at 10:56 PM, Mads Kiilerich &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">mads at kiilerich.com</A>&gt;wrote:
</I>&gt;<i>
</I>&gt;&gt;<i> Mauricio Arozi wrote, On 02/06/2009 07:53 PM:
</I>&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Hello,
</I>&gt;&gt;&gt;<i> I'm trying to import/export keys from/to Crypt_RSA &lt;
</I>&gt;&gt;&gt;<i> <A HREF="http://pear.php.net/package/Crypt_RSA">http://pear.php.net/package/Crypt_RSA</A>&gt;, using PyCrypto &lt;
</I>&gt;&gt;&gt;<i> <A HREF="http://www.dlitz.net/software/pycrypto/">http://www.dlitz.net/software/pycrypto/</A>&gt;. My problem is that while using
</I>&gt;&gt;&gt;<i> PyCrypto to generate both public and private keys, the e(exponent?) is
</I>&gt;&gt;&gt;<i> always the same.
</I>&gt;&gt;&gt;<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>&gt;&gt;&gt;<i> yet others, the e(exponent?) is used for the public key, and d for the
</I>&gt;&gt;&gt;<i> private key.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Yes, many implementations and applications of RSA uses a fixed exponent -
</I>&gt;&gt;<i> very often 65537 (F4). Usually that is a good decision and no problem -
</I>&gt;&gt;<i> perhaps except for interoperability.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> And yes, interoperability is often very hard when implementing crypto
</I>&gt;&gt;<i> stuff. IMHO an important criteria when selecting a crypto library is having
</I>&gt;&gt;<i> examples / proof of how it interoperates with other implementations.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> It is not clear to me exactly what you are asking for, so I can't answer
</I>&gt;&gt;<i> that directly - I hope someone else can do that.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> /Mads
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;<i> pycrypto mailing list
</I>&gt;&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>&gt;&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;<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>