summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/attachments/20100502/96230787/attachment.html
diff options
context:
space:
mode:
Diffstat (limited to 'pipermail/pycrypto/attachments/20100502/96230787/attachment.html')
-rw-r--r--pipermail/pycrypto/attachments/20100502/96230787/attachment.html71
1 files changed, 71 insertions, 0 deletions
diff --git a/pipermail/pycrypto/attachments/20100502/96230787/attachment.html b/pipermail/pycrypto/attachments/20100502/96230787/attachment.html
new file mode 100644
index 0000000..06a6c23
--- /dev/null
+++ b/pipermail/pycrypto/attachments/20100502/96230787/attachment.html
@@ -0,0 +1,71 @@
+<tt>
+&lt;!DOCTYPE&nbsp;HTML&nbsp;PUBLIC&nbsp;&quot;-//W3C//DTD&nbsp;HTML&nbsp;4.01&nbsp;Transitional//EN&quot;&gt;<br>
+&lt;html&gt;<br>
+&lt;head&gt;<br>
+&nbsp;&nbsp;&lt;meta&nbsp;content=&quot;text/html;&nbsp;charset=ISO-8859-1&quot;<br>
+&nbsp;http-equiv=&quot;Content-Type&quot;&gt;<br>
+&lt;/head&gt;<br>
+&lt;body&nbsp;bgcolor=&quot;#ffffff&quot;&nbsp;text=&quot;#000000&quot;&gt;<br>
+On&nbsp;5/2/2010&nbsp;1:13&nbsp;PM,&nbsp;Lorenz&nbsp;Quack&nbsp;wrote:<br>
+&lt;blockquote&nbsp;cite=&quot;mid:4BDDDCF4.6010602@amberfisharts.com&quot;&nbsp;type=&quot;cite&quot;&gt;<br>
+&nbsp;&nbsp;&lt;pre&nbsp;wrap=&quot;&quot;&gt;Hi&nbsp;Jd,<br>
+<br>
+On&nbsp;05/02/2010&nbsp;10:02&nbsp;PM,&nbsp;jd&nbsp;wrote:<br>
+&nbsp;&nbsp;&lt;/pre&gt;<br>
+&nbsp;&nbsp;&lt;blockquote&nbsp;type=&quot;cite&quot;&gt;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;pre&nbsp;wrap=&quot;&quot;&gt;Hi&nbsp;everyone,<br>
+<br>
+I&nbsp;am&nbsp;trying&nbsp;to&nbsp;implement&nbsp;a&nbsp;simple&nbsp;pub/private&nbsp;key&nbsp;scheme.&nbsp;Want&nbsp;to&nbsp;encrypt&nbsp;bunch&nbsp;of&nbsp;things&nbsp;and&nbsp;decrypt&nbsp;it&nbsp;using&nbsp;public<br>
+key&nbsp;(which&nbsp;will&nbsp;be&nbsp;distributed).<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&lt;/pre&gt;<br>
+&nbsp;&nbsp;&lt;/blockquote&gt;<br>
+&nbsp;&nbsp;&lt;pre&nbsp;wrap=&quot;&quot;&gt;<br>
+You&nbsp;seem&nbsp;to&nbsp;have&nbsp;some&nbsp;misconceptions&nbsp;about&nbsp;how&nbsp;public&nbsp;key&nbsp;cryptography&nbsp;works.<br>
+I&nbsp;suggest&nbsp;you&nbsp;(re-)read&nbsp;up&nbsp;on&nbsp;it.&nbsp;Wikipedia&nbsp;will&nbsp;probably&nbsp;cover&nbsp;the&nbsp;basics.<br>
+For&nbsp;starters,&nbsp;by&nbsp;definition&nbsp;you&nbsp;use&nbsp;the&nbsp;*public*&nbsp;key&nbsp;for&nbsp;encrypt&nbsp;and&nbsp;the&nbsp;privat&nbsp;one&nbsp;for&nbsp;decryption.<br>
+&nbsp;&nbsp;&lt;/pre&gt;<br>
+&lt;/blockquote&gt;<br>
+&lt;br&gt;<br>
+Indeed,&nbsp;Wikipedia&nbsp;has&nbsp;an&nbsp;article.&amp;nbsp;&nbsp;And&nbsp;in&nbsp;the&nbsp;first&nbsp;paragraph&nbsp;[1]&nbsp;they<br>
+describe&nbsp;one&nbsp;use&nbsp;case&nbsp;for&nbsp;encrypting&nbsp;by&nbsp;public&nbsp;key,&nbsp;and&nbsp;decrypting&nbsp;by<br>
+private&nbsp;key,&nbsp;and&nbsp;another&nbsp;use&nbsp;case&nbsp;for&nbsp;encrypting&nbsp;by&nbsp;private&nbsp;key,&nbsp;and<br>
+decrypting&nbsp;by&nbsp;public&nbsp;key.&amp;nbsp;&nbsp;It&nbsp;might&nbsp;be&nbsp;appropriate&nbsp;to&nbsp;figure&nbsp;out&nbsp;what<br>
+use&nbsp;case&nbsp;the&nbsp;OP&nbsp;has&nbsp;before&nbsp;declaring&nbsp;definitions&nbsp;for&nbsp;a&nbsp;particular&nbsp;use<br>
+case.&amp;nbsp;&nbsp;Now&nbsp;as&nbsp;far&nbsp;as&nbsp;what&nbsp;the&nbsp;APIs&nbsp;are&nbsp;called,&nbsp;that&nbsp;might&nbsp;be&nbsp;a<br>
+different&nbsp;story&nbsp;:)&lt;br&gt;<br>
+&lt;br&gt;<br>
+[1]&nbsp;&lt;b&gt;Public-key&nbsp;cryptography&lt;/b&gt;&nbsp;is&nbsp;a&nbsp;&lt;a<br>
+&nbsp;href=&quot;http://en.wikipedia.org/wiki/Cryptography&quot;&nbsp;title=&quot;Cryptography&quot;&gt;cryptographic&lt;/a&gt;<br>
+approach&nbsp;which&nbsp;involves&nbsp;the&nbsp;use&nbsp;of&nbsp;asymmetric&nbsp;key&nbsp;algorithms&nbsp;instead&nbsp;of<br>
+or&nbsp;in&nbsp;addition&nbsp;to&nbsp;&lt;a<br>
+&nbsp;href=&quot;http://en.wikipedia.org/wiki/Symmetric_key_algorithm&quot;<br>
+&nbsp;title=&quot;Symmetric&nbsp;key&nbsp;algorithm&quot;&nbsp;class=&quot;mw-redirect&quot;&gt;symmetric&nbsp;key<br>
+algorithms&lt;/a&gt;.&nbsp;Unlike&nbsp;symmetric&nbsp;key&nbsp;algorithms,&nbsp;it&nbsp;does&nbsp;not&nbsp;require&nbsp;a&nbsp;&lt;a<br>
+&nbsp;href=&quot;http://en.wikipedia.org/wiki/Secure_channel&quot;<br>
+&nbsp;title=&quot;Secure&nbsp;<br>
+channel&quot;&gt;secure&lt;/a&gt;&nbsp;initial&nbsp;&lt;a<br>
+&nbsp;href=&quot;http://en.wikipedia.org/wiki/Key_exchange&quot;&nbsp;title=&quot;Key&nbsp;exchange&quot;&gt;exchange&lt;/a&gt;<br>
+of&nbsp;one&nbsp;or&nbsp;more&nbsp;&lt;a&nbsp;href=&quot;http://en.wikipedia.org/wiki/Secret_key&quot;<br>
+&nbsp;title=&quot;Secret&nbsp;key&quot;&nbsp;class=&quot;mw-redirect&quot;&gt;secret&nbsp;keys&lt;/a&gt;&nbsp;to&nbsp;both&nbsp;sender<br>
+and&nbsp;receiver.&nbsp;The&nbsp;asymmetric&nbsp;key&nbsp;algorithms&nbsp;are&nbsp;used&nbsp;to&nbsp;create&nbsp;a<br>
+mathematically&nbsp;related&nbsp;key&nbsp;pair:&nbsp;a&nbsp;secret&nbsp;private&nbsp;key&nbsp;and&nbsp;a&nbsp;published<br>
+public&nbsp;key.&nbsp;Use&nbsp;of&nbsp;these&nbsp;keys&nbsp;allows&nbsp;protection&nbsp;of&nbsp;the&nbsp;&lt;a<br>
+&nbsp;href=&quot;http://en.wikipedia.org/wiki/Authenticity&quot;&nbsp;title=&quot;Authenticity&quot;&gt;authenticity&lt;/a&gt;<br>
+of&nbsp;a&nbsp;message&nbsp;by&nbsp;creating&nbsp;a&nbsp;&lt;a<br>
+&nbsp;href=&quot;http://en.wikipedia.org/wiki/Digital_signature&quot;<br>
+&nbsp;title=&quot;Digital&nbsp;<br>
+signature&quot;&gt;digital&nbsp;signature&lt;/a&gt;&nbsp;of&nbsp;a&nbsp;message&nbsp;using<br>
+the&nbsp;private&nbsp;key,&nbsp;which&nbsp;can&nbsp;be&nbsp;verified&nbsp;using&nbsp;the&nbsp;public&nbsp;key.&nbsp;It&nbsp;also<br>
+allows&nbsp;protection&nbsp;of&nbsp;the&nbsp;&lt;a<br>
+&nbsp;href=&quot;http://en.wikipedia.org/wiki/Confidentiality&quot;<br>
+&nbsp;title=&quot;Confidentiality&quot;&gt;confidentiality&lt;/a&gt;&nbsp;and&nbsp;&lt;a<br>
+&nbsp;href=&quot;http://en.wikipedia.org/wiki/Integrity&quot;&nbsp;title=&quot;Integrity&quot;&gt;integrity&lt;/a&gt;<br>
+of&nbsp;a&nbsp;message,&nbsp;by&nbsp;public&nbsp;key&nbsp;&lt;a<br>
+&nbsp;href=&quot;http://en.wikipedia.org/wiki/Encryption&quot;&nbsp;title=&quot;Encryption&quot;&gt;encryption&lt;/a&gt;,<br>
+<br>
+encrypting&nbsp;the&nbsp;message&nbsp;using&nbsp;the&nbsp;public&nbsp;key,&nbsp;which&nbsp;can&nbsp;only&nbsp;be<br>
+decrypted&nbsp;using&nbsp;the&nbsp;private&nbsp;key.<br>
+&lt;/body&gt;<br>
+&lt;/html&gt;<br>
+
+</tt>