diff options
Diffstat (limited to 'pipermail/pycrypto/attachments/20090818/8fdcf767/attachment.html')
-rw-r--r-- | pipermail/pycrypto/attachments/20090818/8fdcf767/attachment.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pipermail/pycrypto/attachments/20090818/8fdcf767/attachment.html b/pipermail/pycrypto/attachments/20090818/8fdcf767/attachment.html new file mode 100644 index 0000000..7ba14a4 --- /dev/null +++ b/pipermail/pycrypto/attachments/20090818/8fdcf767/attachment.html @@ -0,0 +1,16 @@ +<tt> +<p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">Hi All,</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">I generated a private key with: </p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">openssl.exe req -x509 -nodes -days 365 -newkey rsa:1024 -keyout sdgidfedapp11.corp.intuit.net.key -out sdgidfedapp11.corp.intuit.net.crt</p><br> +<p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">I can&#39;t figure out is how to use PyCrypto.RSA.construct with it</p><br> +<p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">to decrypt something. This works however:</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">from M2Crypto import RSA</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">priv_key = RSA.load_key(&#39;private.key&#39;, get_password)</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">decrypted_key = priv_key.private_decrypt(base64.b64decode(enc_key), RSA.pkcs1</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">_padding)</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">I am sure there is a way to do this with PyCrypto, anyone know how to do it?</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">-Tim</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">P.S.</p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c"><br> +<br></p><p style="margin: 0.0px 0.0px 0.0px 119.0px; text-indent: -119.0px; font: 12.0px Courier; color: #4c4c4c">Thanks for this awsome library, especially on google appe engine!</p><p></p><br> + +</tt> |