summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2011q1/000428.html
diff options
context:
space:
mode:
Diffstat (limited to 'pipermail/pycrypto/2011q1/000428.html')
-rw-r--r--pipermail/pycrypto/2011q1/000428.html79
1 files changed, 79 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2011q1/000428.html b/pipermail/pycrypto/2011q1/000428.html
new file mode 100644
index 0000000..2e76559
--- /dev/null
+++ b/pipermail/pycrypto/2011q1/000428.html
@@ -0,0 +1,79 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [pycrypto] adding ssh keys support in distutils2
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20adding%20ssh%20keys%20support%20in%20distutils2&In-Reply-To=AANLkTim8jbA_LnFnay3frSXX_7U6DPVCVtyua-tTvLK3%40mail.gmail.com">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="000427.html">
+ <LINK REL="Next" HREF="000429.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[pycrypto] adding ssh keys support in distutils2</H1>
+ <B>Legrandin</B>
+ <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20adding%20ssh%20keys%20support%20in%20distutils2&In-Reply-To=AANLkTim8jbA_LnFnay3frSXX_7U6DPVCVtyua-tTvLK3%40mail.gmail.com"
+ TITLE="[pycrypto] adding ssh keys support in distutils2">gooksankoo at hoiptorrow.mailexpire.com
+ </A><BR>
+ <I>Tue Feb 22 14:23:24 CST 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000427.html">[pycrypto] adding ssh keys support in distutils2
+</A></li>
+ <LI>Next message: <A HREF="000429.html">[pycrypto] adding ssh keys support in distutils2
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#428">[ date ]</a>
+ <a href="thread.html#428">[ thread ]</a>
+ <a href="subject.html#428">[ subject ]</a>
+ <a href="author.html#428">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>&gt;&gt;<i> It seems to be that openssl alone is more practical for that, as it
+</I>&gt;&gt;<i> simply runs from the command line.
+</I>&gt;&gt;<i> Or do you plan to do everything from within Python?
+</I>&gt;<i>
+</I>&gt;<i> within python since both client and server are python code.
+</I>
+Right now ssh keys cannot be imported in pycrypto (although I have
+been planning for a while to add that).
+Is that important to you?
+
+You can import openssl keys though (.pem/.der) provided they are not
+encrypted with a password. Alternatively, if interoperability is not a
+concern, you can generate a key pair (e.g. RSA) within python and
+export it with pickle.
+
+Once the keys are in python at the sender, you can concatenate and
+pass the file and the request headers through a hash function (like
+SHA), and then sign the resulting hash using RSA.sign.
+
+At the other end, you do the same hash and pass it to RSA.verify
+(where RSA is the public half only) together with the signature you
+received from the sender.
+</PRE>
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000427.html">[pycrypto] adding ssh keys support in distutils2
+</A></li>
+ <LI>Next message: <A HREF="000429.html">[pycrypto] adding ssh keys support in distutils2
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#428">[ date ]</a>
+ <a href="thread.html#428">[ thread ]</a>
+ <a href="subject.html#428">[ subject ]</a>
+ <a href="author.html#428">[ 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>